Function

GtkIconThemeadd_builtin_icon

deprecated: 3.14 since: 2.4

Declaration [src]

void
gtk_icon_theme_add_builtin_icon (
  const gchar* icon_name,
  gint size,
  GdkPixbuf* pixbuf
)

Description [src]

Registers a built-in icon for icon theme lookups. 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 gtk_icon_theme_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 gdk_pixbuf_new_from_inline().

Available since: 2.4

Deprecated since: 3.14

Use gtk_icon_theme_add_resource_path() to add application-specific icons to the icon theme.

Parameters

icon_name

Type: const gchar*

The name of the icon to register.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
size

Type: gint

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

pixbuf

Type: GdkPixbuf

GdkPixbuf that contains the image to use for icon_name.

The data is owned by the caller of the function.