Gtk.IconFactory.Add Method
Adds the given icon_set to the icon factory, under the name stock_id.

Syntax

public void Add (string stock_id, IconSet icon_set)

Parameters

stock_id
The icon's name
icon_set
The icon set

Remarks

Adds the given icon_set to the icon factory, under the name stock_id. stock_id should be namespaced for your application, e.g. "myapp-name-of-icon". Normally applications create a Gtk.IconFactory, then add it to the list of default factories with IconFactory.AddDefault. They pass the stock_id to widgets such as Gtk.Image to display the icon. Themes can provide an icon with the same name (such as "myapp-name-of-icon") to override your application's default icons. If an icon already existed in factory for stock_id, it is unreferenced and replaced with the new icon_set.

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)