On Apr 30, 2007, at 2:01 AM, jiho wrote:
I am working on a GTK theme and I noticed some strange things with icon sizes. The icon sizes definitions for GTK I could find are:
# gtk-menu -> icon in menus: file, edit, etc. # gtk-button -> icon on yes, no, delete, cancel, back, forward, etc. buttons # gtk-small-toolbar -> not sure about this # gtk-large-toolbar -> toolbars icons # gtk-dnd -> don't know # gtk-dialog -> notification icon in dialogs (e.g. warning, error,etc.) # panel-menu -> icon size in so called 'start' menu
but Inkscape apparently uses gtk-menu size for some toolbars icons, instead of gtk-small-toolbar size as used for the rest of the toolbars:
Not really. That size is just an accident or misinterpretation of what is going on. (There is some option that can be turned on to enable dot grids in the icon rendering)
From src/icon-size.h we use: enum IconSize { ICON_SIZE_INVALID = ::GTK_ICON_SIZE_INVALID, ICON_SIZE_MENU = ::GTK_ICON_SIZE_MENU, ICON_SIZE_SMALL_TOOLBAR = ::GTK_ICON_SIZE_SMALL_TOOLBAR, ICON_SIZE_LARGE_TOOLBAR = ::GTK_ICON_SIZE_LARGE_TOOLBAR, ICON_SIZE_BUTTON = ::GTK_ICON_SIZE_BUTTON, ICON_SIZE_DND = ::GTK_ICON_SIZE_DND, ICON_SIZE_DIALOG = ::GTK_ICON_SIZE_DIALOG, ICON_SIZE_DECORATION };
That last one is the "decoration" size we've added in Inkscape that is used for things like the eye and lock icons, etc.
GTK's enum is documented at http://developer.gnome.org/doc/API/2.0/ gtk/gtk-Themeable-Stock-Images.html#GtkIconSize