add_builtin_icon


Description:

[ Version ( deprecated = true , deprecated_since = "3.14" , since = "2.4" ) ]
public static void add_builtin_icon (string icon_name, int size, Pixbuf pixbuf)

Warning: add_builtin_icon is deprecated since 3.14.

Registers a built-in icon for icon theme lookups.

Note:

Use add_resource_path to add application-specific icons to the icon theme.

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 of GTK+’s stock icons are registered as built-icons.

In general, if you use add_builtin_icon you should also install the icon in the icon theme, so that the icon is generally available.

This function will generally be used with pixbufs loaded via Pixbuf.from_inline.

Parameters:

icon_name

the name of the icon to register

size

the size in pixels at which to register the icon (different images can be registered for the same icon name at different sizes.)

pixbuf

Pixbuf that contains the image to use for icon_name