mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
Make setting the icon-size property on GTK_IMAGE_GICON images work
Bug #602725.
This commit is contained in:
parent
f0923341bb
commit
ba218a7789
@ -361,8 +361,12 @@ gtk_image_set_property (GObject *object,
|
|||||||
gtk_image_set_from_icon_name (image,
|
gtk_image_set_from_icon_name (image,
|
||||||
image->data.name.icon_name,
|
image->data.name.icon_name,
|
||||||
g_value_get_int (value));
|
g_value_get_int (value));
|
||||||
|
else if (image->storage_type == GTK_IMAGE_GICON)
|
||||||
|
gtk_image_set_from_gicon (image,
|
||||||
|
image->data.gicon.icon,
|
||||||
|
g_value_get_int (value));
|
||||||
else
|
else
|
||||||
/* Save to be used when STOCK or ICON_SET property comes in */
|
/* Save to be used when STOCK, ICON_SET, ICON_NAME or GICON property comes in */
|
||||||
image->icon_size = g_value_get_int (value);
|
image->icon_size = g_value_get_int (value);
|
||||||
break;
|
break;
|
||||||
case PROP_PIXEL_SIZE:
|
case PROP_PIXEL_SIZE:
|
||||||
|
Loading…
Reference in New Issue
Block a user