mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 16:50:11 +00:00
GtkImage: fix get_property('stock')
The code was trying to get icon's name instead of icon's stock-id. https://bugzilla.gnome.org/show_bug.cgi?id=678407
This commit is contained in:
parent
bba72eae50
commit
7572325efb
@ -445,7 +445,7 @@ gtk_image_get_property (GObject *object,
|
||||
g_value_set_string (value, priv->filename);
|
||||
break;
|
||||
case PROP_STOCK:
|
||||
g_value_set_string (value, _gtk_icon_helper_get_icon_name (priv->icon_helper));
|
||||
g_value_set_string (value, _gtk_icon_helper_get_stock_id (priv->icon_helper));
|
||||
break;
|
||||
case PROP_ICON_SET:
|
||||
g_value_set_boxed (value, _gtk_icon_helper_peek_icon_set (priv->icon_helper));
|
||||
|
Loading…
Reference in New Issue
Block a user