Quick question about stock icons...

2006-10-12 Thread Freddie Unpenstein

When creating a GtkImage from a stock icon, you need to tell it the size of the 
image to create, as one of the GTK_ICON_SIZE_* constants.

What I want is to find out programatically, how large those sizes are in pixels.

The reason: I've got a function which takes either a stock icon id, or a 
filename, and needs to return the image therein in the requested icon size.  In 
the case of a stock icon, that's easy.  In the case of a file, I need to load 
the image and scale it down to fit in with the rest.


Fredderic

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


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


Re: Quick question about stock icons...

2006-10-12 Thread Yeti
On Thu, Oct 12, 2006 at 04:22:55AM -0400, Freddie Unpenstein wrote:
 When creating a GtkImage from a stock icon, you need to tell it the size of 
 the image to create, as one of the GTK_ICON_SIZE_* constants.
 
 What I want is to find out programatically, how large those sizes are in 
 pixels.

gtk_icon_size_lookup()

Yeti


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