Package: gtk

Function gtk-icon-theme-add-builtin-icon

Lambda List

gtk-icon-theme-add-builtin-icon (name size pixbuf)

Arguments

name -- a string with the name of the icon to register
size -- an integer with the size at which to register the icon
pixbuf -- a gdk-pixbuf object that contains the image to use for the icon

Details

Registers a built-in icon for icon theme lookups. Different images can be registered for the same icon name at different sizes.

The idea of built-in icons is to allow an application or library that uses themed icons to function requiring files to be present in the file system. For instance, the default images for all stock icons of GTK are registered as built-in icons.

In general, if you use the gtk-icon-theme-add-builtin-icon function you should also install the icon in the icon theme, so that the icon is generally available.

Warning

The gtk-icon-theme-add-builtin-icon function has been deprecated since version 3.14 and should not be used in newly written code. Use the gtk-icon-theme-add-resource-path function to add application specific icons to the icon theme.
 

See also

2021-11-28