IconSize.lookupForSettings

Obtains the pixel size of a semantic icon size, possibly modified by user preferences for a particular gtk.Settings Normally size would be GTK_ICON_SIZE_MENU, GTK_ICON_SIZE_BUTTON, etc. This function isn’t normally needed, Widget.renderIconPixbuf is the usual way to get an icon for rendering, then just look at the size of the rendered pixbuf. The rendered pixbuf may not even correspond to the width/height returned by IconSize.lookup, because themes are free to render the pixbuf however they like, including changing the usual size.

More...
struct IconSize
static
bool
lookupForSettings

Parameters

settings Settings

a gtk.Settings object, used to determine which set of user preferences to used.

size GtkIconSize

an icon size (gtk.IconSize)

width int

location to store icon width

height int

location to store icon height

Return Value

Type: bool

TRUE if size was a valid size

Detailed Description

Deprecated: Use IconSize.lookup instead.

Meta