Icon.newForString

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.

interface Icon
static
newForString
(
string str
)

Parameters

str string

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

Return Value

Type: gio.icon.Icon

An object implementing the #GIcon interface or null if error is set.