panel_pixbuf_from_source_at_size


Description:


[ Version ( since = "4.10" ) ]
public Pixbuf panel_pixbuf_from_source_at_size (string source, IconTheme? icon_theme, int dest_width, int dest_height)

Try to load a pixbuf from a source string.

The source could be an abolute path, an icon name or a filename that points to a file in the pixmaps directory.

This function is particularly usefull for loading names from the Icon key of desktop files.

The pixbuf is never bigger than dest_width and dest_height. If it is when loaded from the disk, the pixbuf is scaled preserving the aspect ratio.

Parameters:

source

string that contains the location of an icon

icon_theme

icon theme or null to use the default icon theme

dest_width

the maximum returned width of the GdkPixbuf

dest_height

the maximum returned height of the GdkPixbuf

Returns:

a GdkPixbuf or null if nothing was found. The value should be released with g_object_unref when no longer used.

See also: XfcePanelImage


Namespace: Xfce