shell-util: Remove shell_util_icon_from_string
GJS doesn't need to be able to represent interfaces for you to be able to access an interface method, so Gio.icon_new_for_string works fine. https://bugzilla.gnome.org/show_bug.cgi?id=661231
This commit is contained in:
@ -395,22 +395,6 @@ shell_util_get_icon_for_uri (const char *text_uri)
|
||||
return g_themed_icon_new ("gtk-file");
|
||||
}
|
||||
|
||||
/**
|
||||
* shell_util_icon_from_string:
|
||||
* @string: a stringified #GIcon
|
||||
*
|
||||
* A static method equivalent to g_icon_new_for_string, workaround
|
||||
* for GJS not being able to represent Gio.Icon (which is an interface,
|
||||
* not a class).
|
||||
*
|
||||
* Returns: (transfer full): the icon which is represented by @string
|
||||
*/
|
||||
GIcon *
|
||||
shell_util_icon_from_string (const char *string, GError **error)
|
||||
{
|
||||
return g_icon_new_for_string (string, error);
|
||||
}
|
||||
|
||||
static void
|
||||
stop_pick (ClutterActor *actor,
|
||||
const ClutterColor *color)
|
||||
|
Reference in New Issue
Block a user