Method

GtkIconThemeget_icon_sizes

since: 2.6

Declaration [src]

gint*
gtk_icon_theme_get_icon_sizes (
  GtkIconTheme* icon_theme,
  const gchar* icon_name
)

Description [src]

Returns an array of integers describing the sizes at which the icon is available without scaling. A size of -1 means that the icon is available in a scalable format. The array is zero-terminated.

Available since: 2.6

Parameters

icon_name

Type: const gchar*

The name of an icon.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: An array of gint

An newly allocated array describing the sizes at which the icon is available. The array should be freed with g_free() when it is no longer needed.

The array is NULL-terminated.
The caller of the method takes ownership of the returned data, and is responsible for freeing it.