GTK+ 2.7.0 released [unstable]

2005-06-20 Thread Matthias Clasen
GTK+ 2.7.0 is now available for download at:

   ftp://ftp.gtk.org/pub/gtk/v2.7/

gtk+-2.7.0.tar.bz2  md5sum: d4acba5ed2be742d412b165d8b51acfc
gtk+-2.7.0.tar.gz   md5sum: baec8daf006b10812ea4173368a50998

This is the first development release leading up to GTK+ 2.8. 
The major change in this release is support for Cairo.

Notes:

 * This is unstable development release. There are certainly
   plenty of bugs remaining to be found. This release should
   not be used in production.

 * Note that using Cairo 0.5.0 with GTK+ can trigger a bug in the 
   XRender implementation of many X servers. This particularly
   affects the desktop background in nautilus, see 
   http://bugzilla.gnome.org/show_bug.cgi?id=306216
   Possible workarounds are:
 + use a plain color as background
 + recompile Cairo without XRender support (this will
   be slow)
 + use a cvs snapshot of Cairo (a workaround for this 
   problem was committed on June 20, and should appear
   in Cairo 0.5.1 shortly)

 * Installing this version will overwrite your existing
   copy of GTK+ 2.6. If you have problems, you'll need
   to reinstall GTK+ 2.6.8.

 * GTK+ 2.8 will be source and binary compatible with
   the GTK+ 2.6.x series; however, the new API additions
   in GTK+ 2.7.0 are not yet finalized, so there are likely
   incompatibities between this release and the final
   2.8 release.

 * Remaining issues for GTK+ 2.8 can be found with the
   following bugzilla query:

   http://bugzilla.gnome.org/buglist.cgi?product=gtk
+&target_milestone=2.8+API+Freeze&&target_milestone=2.8
+Freeze&bug_status=NEW&bug_status=UNCONFIRMED&bug_status=ASSIGNED&bug_status=REOPENED


What is GTK+


GTK+ is a multi-platform toolkit for creating graphical user
interfaces. Offering a complete set of widgets, GTK+ is suitable for
projects ranging from small one-off tools to complete application
suites.

GTK+ has been designed from the ground up to support a range of
languages, not only C/C++. Using GTK+ from languages such as Perl and
Python (especially in combination with the Glade GUI builder) provides
an effective method of rapid application development.

GTK+ is free software and part of the GNU Project. However, the
licensing terms for GTK+, the GNU LGPL, allow it to be used by all
pdevelopers, including those developing proprietary software, without
any license fees or royalties.


Where to get more information about GTK+


Information about GTK+ including links to documentation can be
found at:

http://www.gtk.org/

An installation guide for GTK+ 2.x is found at:

 http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html

Common questions:

http://developer.gnome.org/doc/API/2.0/gtk/gtk-question-index.html
http://www.gtk.org/faq/


Overview of Changes from GTK+ 2.6.x to GTK+ 2.7.0
=
* Use Cairo for most drawing [Owen Taylor]
* GtkTreeView
 - Kris is back !!!
 - Lots of scrolling/validation fixes [Kristian Rietveld]
 - Allow to "unsort" columns. [Richard Hult]
 - Support wrapping in GtkCellRendererText [Matthias Clasen]
 - Support tinting in GtkCellRendererPixbuf [Jorn Baayen]
 - Make enable-search control only typeahead search,
   not C-f search. [Sven Neumann]
 - Make double-click autosize treeview columns again [Matthias]
 - Fix insensitive appearance [Billy Biggs, Matthias]
* GtkFileChooser
 - Don't select the first item in folder modes [Christian Neumair,
   Federico Mena Quintero]
 - Make save mode work again [Federico]
 - Allow bookmarks to be renamed [Sean Middleditch]
 - Ellipsize the preview label [Jeroen Zwartepoorte]
 - Use smaller icons [Vincent Noel]
 - Avoid a size allocation loop [Milosz Derzynski, Robert Ögren]
 - Don't stat children of /afs or /net network directories [Federico]
 - Improve sorting of filenames [Matthias]
 - Treat backup files like hidden files, and support
   .hidden files in the Unix backend [Sean Middleditch, Jan Arne
Petersen]
 - Improve the re-rooting behaviour of the path bar [Benjamin Otte]
* GtkIconView
 - Many fixes for scrolling and selection handling [Mathias Hasselmann]
 - Implement GtkCellLayout, use cell renderers [Matthias]
 - Support editing [Matthias]
 - Support DND [Matthias]
 - Add API to determine the visible part of the model [Jonathan
   Blandford]
* GtkAboutDialog
 - Visual improvements, HIG compliance [Jorn Baayen]
* GtkCalendar
 - Use nl_langinfo() to determine the first day of week,
   when it is available [Vincent Untz, Tommi Komulainen, Pierre Ossman]
 - Allow localization of the year format [Paisa Seeluangsawat]
* GtkEntry
 - Allow completion popups to be wider than the entry [Ross Burton]
 - Add a property to suppress the popup for single matches [Matthias]
 - Don't blink the cursor if not editable [Nikos Kouremenos]
* GtkTextView
 - Add a GtkTextBuffer::text property [Johan Dahlin]
 - Allow to set a paragraph background color [Gustavo Carneiro,
   Jeroen Zwart

Re: get size of a GTKImage

2005-06-20 Thread Brian J. Tarricone
[EMAIL PROTECTED] wrote:
> I am writing some app where I need to move an image around inside a GtkFixed,
> and I need to get it's size.
> 
> I create the image from a file with gtk_image_set_from_file()
> 
> Is there an easy way?  I managed to get it's dimensions by getting 
> it's
> pixbuf,
> but how can I be sure if it will always have an associated pixbuf?
> 
> Reason is I want to center it initially and redimension it's container
> so that
> it fits.
> 
> Any suggestion?

After it's been realised, you can get the size from
widget->allocation.width and widget->allocation.height.

-brian

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


get size of a GTKImage

2005-06-20 Thread davidgn
I am writing some app where I need to move an image around inside a GtkFixed,
and I need to get it's size.

I create the image from a file with gtk_image_set_from_file()

Is there an easy way?  I managed to get it's dimensions by getting it's
pixbuf,
but how can I be sure if it will always have an associated pixbuf?

Reason is I want to center it initially and redimension it's container
so that
it fits.

Any suggestion?

-
www.correo.unam.mx
UNAMonos Comunicándonos

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


100 Different Colors

2005-06-20 Thread Lola Smith
Hello,

I need to create 100 little squares and each of them
has to be a different color. They can't just be a
random color: they have to follow the colors of the
standard color spectrum/palette. For example, the
first one is dark blue, then lighter blue, ... ,
green, ... , red. 

I am new to GTK, so I'm not sure how to do this. Here
is what I have so far:

--

GdkGC *gc;
GdkColor c;

c.pixel = 0;
c.red   = 65535;
c.blue  = 65535;
c.green = 0;

gdk_color_alloc (gdk_colormap_get_system (), &c);
gc = gdk_gc_new (widget->window);
gdk_gc_set_foreground (gc, &c);

for (i=0; i<100; i++) {
   gdk_draw_rectangle (widget->window, gc, TRUE, i*15,
0, 11, 11);
}



This creates 100 squares with the same color. How do I
get different color every time? Do I have to hard-code
ALL of the 100 colors (and do gdk_color_alloc 100
times)? If so, how do I know which number (0-65535) to
use for RGB? Add 1 every time? 

Is there a better solution to this?

Thanks a lot!!
Lola


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Question about gtk_text_buffer_insert

2005-06-20 Thread Michal Porzuczek
Hi,

When using gtk_text_buffer_insert on a GtkTextView widget that is open
at the same time as I edit the textView's buffer can this be
responsible for a Seg Fault and or a pretty dramatic decrease in CPU
performance? Is there an alternative?

Michal
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Pango-1.9.0 released [unstable]

2005-06-20 Thread Owen Taylor
Pango-1.9.0 is now available for download at:

 ftp://ftp.gtk.org/pub/gtk/v2.7/

pango-1.9.0.tar.bz2   md5sum: d4948020be961217f2c3b0c0470762d1
pango-1.9.0.tar.gzmd5sum: acd786b4995ab233e3f4345db787e6f1

This is a development release leading up to Pango-1.10.0, which 
will be released together with GTK+-2.8.

The major change in this release is support for Cairo.

Notes:

 * This is unstable development release. While it has had
   fairly extensive testing, there are likely bugs
   remaining to be found. This release should not be used
   in production.

 * Installing this version will overwrite your existing
   copy of Pango-1.8. If you have problems, you'll need
   to reinstall Pango-1.8.1

 * Bugs should be reported to http://bugzilla.gnome.org.

About Pango
===

Pango is a library for layout and rendering of text, with an emphasis
on internationalization. Pango can be used anywhere that text layout
is needed, though most of the work on Pango so far has been done in 
the context of the GTK+ widget toolkit. Pango forms the core of text
and font handling for GTK+-2.x.

Pango is designed to be modular; the core Pango layout engine can 
be used with different font backends. There are two basic backends, 
with multiple options for rendering with each.

 - Client side fonts using the FreeType and fontconfig libraries.
   Rendering can be with with Cairo or Xft libraries, or directly
   to an in-memory buffer with no additional libraries.

 - Native fonts on Microsoft Windows. (Optionally using Uniscribe
   for complex-text handling). Rendering can be done via Cairo
   or directly using the native Win32 API.

The integration of Pango with Cairo (http://cairographics.org)
provides a complete solution with high quality text handling
and graphics rendering.

Dynamically loaded modules then handle text layout for particular
combinations of script and font backend. Pango-1.9 ships with a wide
selection of modules, including modules for Hebrew, Arabic, Hangul, 
Thai, and a number of Indic scripts. Virtually all of the world's major 
scripts are supported.

As well as the low level layout rendering routines, Pango includes
PangoLayout, a high level driver for laying out entire blocks of text,
and routines to assist in editing internationalized text.

More information about Pango is available from http://www.pango.org/.

Pango depends on version 2.6.0 or newer of the GLib library; more 
information about GLib can be found at http://www.gtk.org/.

Overview of changes between 1.8.x and 1.9.x
===
* Add Cairo support; PangoCairoFontmap is an interface with
  implementations for Fontconfig fonts and Win32 fonts
* Extend PangoFcFontmap to allow more customization by subclasses
* Handle NULL language better for pango_context_get_metrics()
* misc optimization [Paolo Borelli, Behdad Esfahbod]
* Misc bug and build fixes [Hans Breuer, Damien Carbery,
  Keith Packard, Manish Singh]
* Doc fixes [Tim Janik]

Overview of stable-branch changes since 1.8.1
=
* Increase sharing of data between different copies of Pango
  [Tommi Komulainen, Ross Burton]
* Cache metrics for the Win32 backend [Tor Lillqvist]
* Improve handling of RTL text when passing it to Uniscribe [Tor]
* Better handling of MacThai encoded fonts [Theppitak Karoonboonyanan]
* Support for TrueType fonts with characters outside the BMP [Tor]
* Handle zero width chars properly in Hangul backend
  [Young-Ho Cha, Changwoo Ryu]
* Misc bug and build fixes [Sebastien Bacher, Paolo Borelli,
  Aivars Kalvans, Stepan Kasal, Ben Maurer, Sukhjinder Sidhu, Manish Singh,
  Morten Welinder]

Owen Taylor
20 June 2005
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: What key is now pressed?

2005-06-20 Thread Liam R. E. Quin
On Mon, 2005-06-20 at 21:28 +, Jan wrote:
> Hello.
> 
> Using gdk_display_get_pointer, I can know is ctrl, alt, shift now up or
> down, 
> and I wonder is there function to check up or down any key?

A better approach is often to have a callback for a keypress and/or
key release.  Have your program react to key presses rather than
polling.

If you're trying to make the user hold "control-alt-w" down while
dragging, you may run into accessibility problems!

I'm sorry if I didn't really understand your question though.

Liam

-- 
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin
Pictures from old books: http://www.holoweb.net/~liam/pictures/oldbooks/
IRC (chat) programs: www.ircreviews.org/clients/

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: GTK themes on windows

2005-06-20 Thread Deekshit M
Yes... That is exactly the problem. I replaced the
exsiting engine dll files with the one from 2.4 and
everything is fine now.

Thank you very much

Deekshit M

--- Tor Lillqvist <[EMAIL PROTECTED]> wrote:

> Deekshit M writes:
>  > After that I get an error message "The procedure
> entry point
>  > g_return_if_fail_warning could not be located in
> dynamic link
>  > library libglib-2.0-0.dll", for any GTK
> application.
> 
> My guess is that you are using a theme engine built
> for GTK+ 2.6 with
> a GTK+ 2.4 (and GLib 2.4) runtime? 
> 
> --tml
> 
> 

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: GTK themes on windows

2005-06-20 Thread Tor Lillqvist
Deekshit M writes:
 > After that I get an error message "The procedure entry point
 > g_return_if_fail_warning could not be located in dynamic link
 > library libglib-2.0-0.dll", for any GTK application.

My guess is that you are using a theme engine built for GTK+ 2.6 with
a GTK+ 2.4 (and GLib 2.4) runtime? 

--tml

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: GTK themes on windows

2005-06-20 Thread Deekshit M
Hi ,
   I added the following line in.gtkrc-2.0 include
"D:/GnuWin32/share/themes/Glossy/gtk-2.0/gtkrc", in
C:\Documents and Settings\. IN fact, the file
was already existsing. I just removed all the contests
and added this line. After that I get an error message
"The procedure entry point g_return_if_fail_warning
could not be located in dynamic link library
libglib-2.0-0.dll", for any GTK application. Then I
had to remove this line. I get this error if I
"include" any working theme's (like MS-Windows) gtkrc
file. But this work fine when I set theme name instead
of include. But the themes found in art.gnome.prg does
not work.

Thanks
Deekshit M

--- Carlo Agrusti <[EMAIL PROTECTED]> wrote:

> Deekshit M ha scritto lo scorso 19/06/2005 20:17:
> > Hi all,
> >I wanted to know how do I add a theme to the
> > windows application, that I am am developing on
> > windows. I could see that, when I change the theme
> > using theme-selector applictaion, the theme for
> the
> > GTK-demos get changed. But not for my application.
> 
> > So,
> > 1) How to make these thinsg work for my
> application ?
> > 2) How to apply the themes available at
> art.gnome.org
> > to my application on windows
> 
> You need 2 different things:
> - the theme
> - the theme engine
> 
> All theme engines are located (i.e. you have to put
> them) into your 
> %COMMONFILES%\GTK\2.0\lib\Gtk-2.0\2.x.0\engines
> directory; they are 
> .dlls (you can compile them by yourself or just find
> ready to use).
> 
> Themes are located into your
> %COMMONFILES%\GTK\2.0\share\themes 
> directory; each theme is made off a directory tree
> with the upmost 
> directory named as the theme itself and containing
> all needed resources.
> 
> Theme selection mechanism for *all* gtk applications
> running on your 
> system is fairly simple: just put into your home
> directory (something 
> like C:\Documents and Settings\your_user_name) a
> file containing the 
> following line:
> 
> include "C:/Programmi/File 
>
Comuni/GTK/2.0/share/themes/dark_outworld/gtk-2.0/gtkrc"
> 
> (in this case the theme is "Dark Outworld")
> and name it .gtkrc-2.0
> 
> Of course, gtk applications that parse their own
> theme will not be 
> affected by your global theme setting.
> 
> Cheers,
> Carlo
> ___
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
>
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
> 

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


What key is now pressed?

2005-06-20 Thread Jan
Hello.

Using gdk_display_get_pointer, I can know is ctrl, alt, shift now up or
down, 
and I wonder is there function to check up or down any key?

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


scratchbox / Re: arm-llinux-gcc cross compile

2005-06-20 Thread Toni Willberg
On Mon, 2005-06-20 at 10:56 -0400, Mike Gilorma wrote:
> I'm trying to develop an application to run on a pxa-255 based system, so I 
> need to use a cross complier.  When I try to cross compile, I get an error 
> message that says "gtk/gtk.h: No such file or directory."  The test program 
> I have written complies fine normally, and I have used the cross compiler 
> successfully before, any ideas what I might try?
> 

If you want to do it the easy way, try using Scratchbox from
http://www.scratchbox.org/ 

Scratchbox provides a sandboxed environment to avoid common
cross-compilation problems. You'll find some toolchains for ARM there, I
don't know if they have been tested against pxa-255 (but I hope you'll
tell) :)


- Toni


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: how to set icon for gtk app on windows?

2005-06-20 Thread Hubert Sokołowski


I found a way to do that, maybe someone will need it too.

You have to create a resource file that references your icon.

--- begin foo.rc ---
1 ICON "foo.ico"
--- end foo.rc ---

Then compile this file with windres

windres foo.rc fooicon.o

Then link your program.

gcc -o foo.exe -mwindows foo.o fooicon.o ...

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


arm-llinux-gcc cross compile

2005-06-20 Thread Mike Gilorma
I'm trying to develop an application to run on a pxa-255 based system, so I 
need to use a cross complier.  When I try to cross compile, I get an error 
message that says "gtk/gtk.h: No such file or directory."  The test program 
I have written complies fine normally, and I have used the cross compiler 
successfully before, any ideas what I might try?



___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


how to set icon for gtk app on windows?

2005-06-20 Thread Hubert Sokołowski

Hi!

I post this question on this list because I believe I can find here
programmers that use gtk on windows. I want to add an icon to my gtk
application on windows. Anyone know how to do that ? Are there any free
tools on the net for this? I found some to extract icons from executable
files but none for addding.

regards
hs
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: GtkTreeView issues (porting from GtkCList)

2005-06-20 Thread Yury Aliaev

Thanks a lot, this probably is a solution :-)
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: GTK themes on windows

2005-06-20 Thread Deekshit M
Hi,
   I heard a lot about pixmap-engine. Is it a
downloadable engine, or available with standard GTK
package itself.

Thanks
Deekshit M

--- Carlo Agrusti <[EMAIL PROTECTED]> wrote:

> Deekshit M ha scritto lo scorso 19/06/2005 20:17:
> > Hi all,
> >I wanted to know how do I add a theme to the
> > windows application, that I am am developing on
> > windows. I could see that, when I change the theme
> > using theme-selector applictaion, the theme for
> the
> > GTK-demos get changed. But not for my application.
> 
> > So,
> > 1) How to make these thinsg work for my
> application ?
> > 2) How to apply the themes available at
> art.gnome.org
> > to my application on windows
> 
> You need 2 different things:
> - the theme
> - the theme engine
> 
> All theme engines are located (i.e. you have to put
> them) into your 
> %COMMONFILES%\GTK\2.0\lib\Gtk-2.0\2.x.0\engines
> directory; they are 
> .dlls (you can compile them by yourself or just find
> ready to use).
> 
> Themes are located into your
> %COMMONFILES%\GTK\2.0\share\themes 
> directory; each theme is made off a directory tree
> with the upmost 
> directory named as the theme itself and containing
> all needed resources.
> 
> Theme selection mechanism for *all* gtk applications
> running on your 
> system is fairly simple: just put into your home
> directory (something 
> like C:\Documents and Settings\your_user_name) a
> file containing the 
> following line:
> 
> include "C:/Programmi/File 
>
Comuni/GTK/2.0/share/themes/dark_outworld/gtk-2.0/gtkrc"
> 
> (in this case the theme is "Dark Outworld")
> and name it .gtkrc-2.0
> 
> Of course, gtk applications that parse their own
> theme will not be 
> affected by your global theme setting.
> 
> Cheers,
> Carlo
> ___
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
>
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
> 

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: GTK themes on windows

2005-06-20 Thread Carlo Agrusti

Deekshit M ha scritto lo scorso 19/06/2005 20:17:

Hi all,
   I wanted to know how do I add a theme to the
windows application, that I am am developing on
windows. I could see that, when I change the theme
using theme-selector applictaion, the theme for the
GTK-demos get changed. But not for my application. 
So,

1) How to make these thinsg work for my application ?
2) How to apply the themes available at art.gnome.org
to my application on windows


You need 2 different things:
- the theme
- the theme engine

All theme engines are located (i.e. you have to put them) into your 
%COMMONFILES%\GTK\2.0\lib\Gtk-2.0\2.x.0\engines directory; they are 
.dlls (you can compile them by yourself or just find ready to use).


Themes are located into your %COMMONFILES%\GTK\2.0\share\themes 
directory; each theme is made off a directory tree with the upmost 
directory named as the theme itself and containing all needed resources.


Theme selection mechanism for *all* gtk applications running on your 
system is fairly simple: just put into your home directory (something 
like C:\Documents and Settings\your_user_name) a file containing the 
following line:


include "C:/Programmi/File 
Comuni/GTK/2.0/share/themes/dark_outworld/gtk-2.0/gtkrc"


(in this case the theme is "Dark Outworld")
and name it .gtkrc-2.0

Of course, gtk applications that parse their own theme will not be 
affected by your global theme setting.


Cheers,
Carlo
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list