Class: Gio::ThemedIcon
- Inherits:
-
Object
- Object
- Gio::ThemedIcon
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#append_name(iconname) ⇒ nil
Append a name to the list of icons from within icon.
-
#name=(name) ⇒ String
The icon name.
-
#names ⇒ Gio::
A nil-terminated array of icon names.
-
#names=(names) ⇒ Gio::
A nil-terminated array of icon names.
-
#new(iconname) ⇒ Gio::ThemedIcon
Creates a new themed icon for iconname.
-
#new_from_names(iconnames, len) ⇒ Gio::ThemedIcon
Creates a new themed icon for iconnames.
-
#new_with_default_fallbacks(iconname) ⇒ Gio::ThemedIcon
Creates a new themed icon for iconname, and all the names that can be created by shortening iconname at ‘-’ characters.
-
#prepend_name(iconname) ⇒ nil
Prepend a name to the list of icons from within icon.
-
#use_default_fallbacks=(use_default_fallbacks) ⇒ TrueClass
Whether to use the default fallbacks found by shortening the icon name at ‘-’ characters.
-
#use_default_fallbacks? ⇒ TrueClass
Whether to use the default fallbacks found by shortening the icon name at ‘-’ characters.
Instance Method Details
#append_name(iconname) ⇒ nil
Append a name to the list of icons from within icon.
Note that doing so invalidates the hash computed by prior calls to g_icon_hash().
#name=(name) ⇒ String
The icon name.
#names ⇒ Gio::
A nil-terminated array of icon names.
#names=(names) ⇒ Gio::
A nil-terminated array of icon names.
#new(iconname) ⇒ Gio::ThemedIcon
Creates a new themed icon for iconname.
#new_from_names(iconnames, len) ⇒ Gio::ThemedIcon
Creates a new themed icon for iconnames.
#new_with_default_fallbacks(iconname) ⇒ Gio::ThemedIcon
Creates a new themed icon for iconname, and all the names that can be created by shortening iconname at ‘-’ characters.
In the following example, icon1 and icon2 are equivalent:
const char *names[] = {
"gnome-dev-cdrom-audio",
"gnome-dev-cdrom",
"gnome-dev",
"gnome"
};
icon1 = g_themed_icon_new_from_names (names, 4);
icon2 = g_themed_icon_new_with_default_fallbacks ("gnome-dev-cdrom-audio");
#prepend_name(iconname) ⇒ nil
Prepend a name to the list of icons from within icon.
Note that doing so invalidates the hash computed by prior calls to g_icon_hash().
#use_default_fallbacks=(use_default_fallbacks) ⇒ TrueClass
Whether to use the default fallbacks found by shortening the icon name at ‘-’ characters. If the “names” array has more than one element, ignores any past the first.
For example, if the icon name was “gnome-dev-cdrom-audio”, the array would become
{
"gnome-dev-cdrom-audio",
"gnome-dev-cdrom",
"gnome-dev",
"gnome",
NULL
};
#use_default_fallbacks? ⇒ TrueClass
Whether to use the default fallbacks found by shortening the icon name at ‘-’ characters. If the “names” array has more than one element, ignores any past the first.
For example, if the icon name was “gnome-dev-cdrom-audio”, the array would become
{
"gnome-dev-cdrom-audio",
"gnome-dev-cdrom",
"gnome-dev",
"gnome",
NULL
};