gio.themed_icon
Module for ThemedIcon class
Types 3
gio.themed_icon.ThemedIcon is an implementation of gio.icon.Icon that supports icon themes.
gio.themed_icon.ThemedIcon contains a list of all of the icons present in an icon theme, so that icons can be looked up quickly. gio.themed_icon.ThemedIcon does not provide actual pixmaps for icons, just the icon names. Ideally something like method@Gtk.IconTheme.choose_icon should be used to resolve the list of names so that fallback icons work nicely with themes that inherit other themes.
Methods
ThemedIcon self()Returns `this`, for use in `with` statements.ThemedIconGidBuilder builder()Get builder for [gio.themed_icon.ThemedIcon] Returns: New builder objectbool useDefaultFallbacks() @propertyGet `useDefaultFallbacks` property. Returns: 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 pa...gio.themed_icon.ThemedIcon newFromNames(string[] iconnames)Creates a new themed icon for iconnames.gio.themed_icon.ThemedIcon newWithDefaultFallbacks(string iconname)Creates a new themed icon for iconname, and all the names that can be created by shortening iconname at '-' characters.void appendName(string iconname)Append a name to the list of icons from within icon.string[] getNames()Gets the names of icons from within icon. Returns: a list of icon names.void prependName(string iconname)Prepend a name to the list of icons from within icon.classThemedIconGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, gio.icon.IconGidBuilderImpl!T
Fluent builder implementation template for gio.themed_icon.ThemedIcon
Methods
T name(string propval)Set `name` property. Params: propval = The icon name. Returns: Builder instance for fluent chainingT useDefaultFallbacks(bool propval)Set `useDefaultFallbacks` property. Params: propval = Whether to use the default fallbacks found by shortening the icon name at '-' characters. If the "names" array has more than one element, ignor...Fluent builder for gio.themed_icon.ThemedIcon
Methods
ThemedIcon build()Create object from builder. Returns: New object