[gtk+] Make setting the icon-size property on GTK_IMAGE_GICON images work
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Make setting the icon-size property on GTK_IMAGE_GICON images work
- Date: Mon, 23 Nov 2009 16:04:32 +0000 (UTC)
commit ba218a77892739a3668a3369370afb5d41de8c03
Author: Christian Persch <chpe gnome org>
Date: Mon Nov 23 14:33:08 2009 +0100
Make setting the icon-size property on GTK_IMAGE_GICON images work
Bug #602725.
gtk/gtkimage.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index 4d80267..6c53d30 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]