Make setting the icon-size property on GTK_IMAGE_GICON images work

Bug #602725.
This commit is contained in:
Christian Persch 2009-11-23 14:33:08 +01:00
parent f0923341bb
commit ba218a7789

View File

@ -361,8 +361,12 @@ gtk_image_set_property (GObject *object,
gtk_image_set_from_icon_name (image,
image->data.name.icon_name,
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
/* 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);
break;
case PROP_PIXEL_SIZE: