IconSize.lookupForSettings

bool lookupForSettings(gtk.settings.Settings settings, gtk.types.IconSize size, out int width, out int height)

Obtains the pixel size of a semantic icon size, possibly modified by user preferences for a particular #GtkSettings. Normally size would be #GTK_ICON_SIZE_MENU, #GTK_ICON_SIZE_BUTTON, etc. This function isn’t normally needed, gtk.widget.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 gtk.global.iconSizeLookup, because themes are free to render the pixbuf however they like, including changing the usual size.

Parameters

settingsa #GtkSettings object, used to determine which set of user preferences to used.
sizean icon size (#GtkIconSize)
widthlocation to store icon width
heightlocation to store icon height

Returns

true if size was a valid size

Deprecated