Method
GtkIconThemelookup_by_gicon
Declaration [src]
GtkIconPaintable*
gtk_icon_theme_lookup_by_gicon (
GtkIconTheme* self,
GIcon* icon,
int size,
int scale,
GtkTextDirection direction,
GtkIconLookupFlags flags
)
Description [src]
Looks up a icon for a desired size and window scale.
The icon can then be rendered by using it as a GdkPaintable,
or you can get information such as the filename and size.
Parameters
icon-
Type:
GIconThe
GIconto look up.The data is owned by the caller of the method. size-
Type:
intDesired icon size.
scale-
Type:
intThe desired scale.
direction-
Type:
GtkTextDirectionText direction the icon will be displayed in.
flags-
Type:
GtkIconLookupFlagsFlags modifying the behavior of the icon lookup.
Return value
Type: GtkIconPaintable
A GtkIconPaintable containing
information about the icon. Unref with g_object_unref().
| The caller of the method takes ownership of the returned data, and is responsible for freeing it. |