Gio.ThemedIcon.new_with_default_fallbacks

function new_with_default_fallbacks(iconname: String): Gio.ThemedIcon {
    // Gjs wrapper for g_themed_icon_new_with_default_fallbacks()
}
  

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: |[<!-- language="C" --> 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"); ]|

iconname

a string containing an icon name

Returns

a new Gio.ThemedIcon.