lookup_by_gicon


Description:

[ Version ( since = "2.14" ) ]
public IconInfo? lookup_by_gicon (Icon icon, int size, IconLookupFlags flags)

Looks up an icon and returns a IconInfo containing information such as the filename of the icon.

The icon can then be rendered into a pixbuf using load_icon.

When rendering on displays with high pixel densities you should not use a size multiplied by the scaling factor returned by functions like get_scale_factor. Instead, you should use lookup_by_gicon_for_scale, as the assets loaded for a given scaling factor may be different.

Parameters:

this

a IconTheme

icon

the Icon to look up

size

desired icon size

flags

flags modifying the behavior of the icon lookup

Returns:

a IconInfo containing information about the icon, or null if the icon wasn’t found. Unref with unref