Function

GtkIconSizelookup_for_settings

deprecated: 3.10 since: 2.2

Declaration [src]

gboolean
gtk_icon_size_lookup_for_settings (
  GtkSettings* settings,
  GtkIconSize size,
  gint* width,
  gint* height
)

Description [src]

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_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.

Available since: 2.2

Deprecated since: 3.10

Use gtk_icon_size_lookup() instead.

Parameters

settings

Type: GtkSettings

A GtkSettings object, used to determine which set of user preferences to used.

The data is owned by the caller of the function.
size

Type: GtkIconSize

An icon size (GtkIconSize).

width

Type: gint*

Location to store icon width.

The argument will be set by the function.
The argument can be NULL.
height

Type: gint*

Location to store icon height.

The argument will be set by the function.
The argument can be NULL.

Return value

Type: gboolean

TRUE if size was a valid size.