GObject.Object
Gtk.IconFactory
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-2.0.gir |
C documentation: | GtkIconFactory |
Class : | IconFactory |
Implements: | Gtk.Buildable |
Extends: | GObject.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
icons : Object
read only
|
Gtk.IconFactory | |
parent_instance : GObject.Object
read only
|
Gtk.IconFactory |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.IconFactory
(Object properties)
Create a new Gtk.IconFactory
Create a new Gtk.IconFactory
|
||
Looks for an icon in the list of default icon factories.
Looks for an icon in the list of default icon factories. For display to the user, you should use gtk_style_lookup_icon_set() on the GtkStyle for the widget that will display the icon, instead of using this function directly, so that themes are taken into account.
|
Gtk.IconFactory | |
Adds the given icon_set to the icon factory, under the name e.g.
Adds the given icon_set to the icon factory, under the name e.g. "myapp-whatever-icon". Normally applications create a GtkIconFactory, then add it to the list of default factories with gtk_icon_factory_add_default(). Then they pass the stock_id to widgets such as GtkImage to display the icon. Themes can provide an icon with the same name (such as "myapp-whatever-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.
|
Gtk.IconFactory | |
Adds a child to buildable.
Adds a child to buildable. type is an optional string describing how the child should be added.
|
Gtk.Buildable | |
add_default
()
:
none
Adds an icon factory to the list of icon factories searched by gtk_style_lookup_icon_set().
Adds an icon factory to the list of icon factories searched by gtk_style_lookup_icon_set(). This means that, for example, gtk_image_new_from_stock() will be able to find icons in factory. There will normally be an icon factory added for each library or application that comes with icons. The default icon factories can be overridden by themes.
|
Gtk.IconFactory | |
Constructs a child of buildable with the name name.
Constructs a child of buildable with the name name. GtkBuilder calls this function if a "constructor" has been specified in the UI definition.
|
Gtk.Buildable | |
This is similar to gtk_buildable_parser_finished() but is called once for each custom tag handled by the buildable.
This is similar to gtk_buildable_parser_finished() but is called once for each custom tag handled by the buildable.
|
Gtk.Buildable | |
This is called at the end of each custom element handled by the buildable.
This is called at the end of each custom element handled by the buildable.
|
Gtk.Buildable | |
custom_tag_start
(Builder builder, Object child, String tagname, MarkupParser parser, void* data)
:
Boolean
This is called for each unknown element under <child>.
This is called for each unknown element under <child>. if it doesn't.
|
Gtk.Buildable | |
Get the internal child called childname of the buildable object.
Get the internal child called childname of the buildable object.
|
Gtk.Buildable | |
get_name
()
:
String
Gets the name of the buildable object.
Gets the name of the buildable object. GtkBuilder sets the name based on the the GtkBuilder UI definition used to construct the buildable.
|
Gtk.Buildable | |
lookup
(String stock_id)
:
Gtk.IconSet
Looks up stock_id in the icon factory, returning an icon set if found, otherwise NULL.
Looks up stock_id in the icon factory, returning an icon set if found, otherwise NULL. For display to the user, you should use gtk_style_lookup_icon_set() on the GtkStyle for the widget that will display the icon, instead of using this function directly, so that themes are taken into account.
|
Gtk.IconFactory | |
parser_finished
(Builder builder)
:
none
Called when the builder finishes the parsing of a GtkBuilder UI definition.
Called when the builder finishes the parsing of a GtkBuilder UI definition. Note that this will be called once for each time gtk_builder_add_from_file() or gtk_builder_add_from_string() is called on a builder.
|
Gtk.Buildable | |
remove_default
()
:
none
Removes an icon factory from the list of default icon factories.
Removes an icon factory from the list of default icon factories. Not normally used; you might use it for a library that can be unloaded or shut down.
|
Gtk.IconFactory | |
Sets the property name name to value on the buildable object.
Sets the property name name to value on the buildable object.
|
Gtk.Buildable | |
set_name
(String name)
:
none
Sets the name of the buildable object.
Sets the name of the buildable object.
|
Gtk.Buildable |
None |