[sugar] Icon(gtk.Image) - icon size

Simon Schampijer simon at schampijer.de
Mon Mar 10 18:03:40 EDT 2008


Hi,

the Icon class (derived from gtk.Image) is using gtk-icon-size-lookup[1] 
to determine the icon's size. The size must therefore be an enum like 
gtk.ICON_SIZE_MENU.

How do we best handle our custom sizes (like style.LARGE_ICON_SIZE)? 
You can registers a new icon size [2] but I am not sure this is the 
right approach.

Best,
    Simon

[1] 
http://www.pygtk.org/pygtk2reference/class-gtkiconsource.html#function-gtk--icon-size-lookup
[2]
http://www.pygtk.org/pygtk2reference/class-gtkiconsource.html#function-gtk--icon-size-register


More information about the Sugar mailing list