lookup_for_settings
function lookup_for_settings(settings:Gtk.Settings, size:Number):Boolean {
// Gjs wrapper for gtk_icon_size_lookup_for_settings()
}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, render_icon_pixbuf 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.icon_size_lookup, because themes are free to render the pixbuf however they like, including changing the usual size.
Since 2.2
- settings
a Gtk.Settings object, used to determine which set of user preferences to used.
- size
an icon size
- Returns
true if size was a valid size