Icon.newForString

gio.icon.Icon newForString(string str)

Generate a #GIcon instance from str. This function can fail if str is not valid - see gio.icon.Icon.toString_ for discussion.

If your application or library provides one or more #GIcon implementations you need to ensure that each #GType is registered with the type system prior to calling gio.icon.Icon.newForString.

Parameters

strA string obtained via gio.icon.Icon.toString_.

Returns

An object implementing the #GIcon

interface or null if error is set.

Throws