Re: Changing the icon...



"Miguel Pignatelli" wrote:

How could I change the "X" icon at the top of a window created with
GTK? I would like to put there a customized icon? Please see the image
attached showing the icon that I would like to change.

I'm using GTK 2 under Linux. 

http://developer.gnome.org/doc/API/2.0/gtk/GtkWindow.html#gtk-window-set-icon

To obtain the required GdkPixbuf using one of these functions is the
easiest way:

http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/gdk-pixbuf-creating.html#gdk-pixbuf-new-from-xpm-data
http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/gdk-pixbuf-file-loading.html

Note that window managers might be a bit fussy about which icon
dimensions they accept and display. 32x32 or 16x16 should be safe.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]