Re: GtkImage API question



jrb redhat com writes:
> Is there any reason that void gtk_image_set_from_stock and
> gtk_image_set_from_icon_set both take a char * for their size argument
> instead of an enum.  This is different from the rest of GTK+, and makes
> finding the size to set harder (ie, I can't just look in gtkenums.h -- I
> have to look around the headers before I find it in gtkiconfactory.h, of
> all places.)
> 
> Any objection if I change it into an enum?
> 

Because stock icon sizes are strings, there is no enum. The reason is
that you can register custom sizes.

Havoc




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