Function

Gio-2.0Gioicon_new_for_stringSince 2.20

  • Generate a Gio.Icon instance from str. This function can fail if str is not valid - see g_icon_to_string() for discussion.

    If your application or library provides one or more Gio.Icon implementations you need to ensure that each GObject.GType is registered with the type system prior to calling g_icon_new_for_string().

    Parameters

    • str: string

      A string obtained via g_icon_to_string().

    Returns Gio.Icon

    An object implementing the Gio.Icon interface or null if error is set.

    2.20