Package: gtk

Function gtk-icon-info-load-icon

Lambda List

gtk-icon-info-load-icon (info)

Arguments

info -- a gtk-icon-info instance

Return Value

The gdk-pixbuf object with the rendered icon.

Details

Renders an icon previously looked up in an icon theme using the gtk-icon-theme-lookup-icon function. The size will be based on the size passed to the gtk-icon-theme-lookup-icon function.

Note that the resulting pixbuf may not be exactly this size. An icon theme may have icons that differ slightly from their nominal sizes, and in addition GTK will avoid scaling icons that it considers sufficiently close to the requested size or for which the source image would have to be scaled up too far. This maintains sharpness. This behaviour can be changed by passing the :force-size flag when obtaining the gtk-icon-info instance. If this flag has been specified, the pixbuf returned by this function will be scaled to the exact size.
 

See also

2021-11-28