summaryrefslogtreecommitdiff
path: root/gtk/gtktoolbutton.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2010-01-26 15:41:00 +0100
committerChristian Persch <chpe@gnome.org>2010-02-09 15:08:56 +0100
commit9497a198f7c6fc528391648f5e85dfa09364fc74 (patch)
treede13b7905ead45518b692cf37d2a7a7dbb594322 /gtk/gtktoolbutton.c
parentbc39d88b4479051360cf8a16f40bbf51b7b758c4 (diff)
downloadgtk+-9497a198f7c6fc528391648f5e85dfa09364fc74.tar.gz
Correctly clone the toolbutton's icon-name image widget
Bug #608162.
Diffstat (limited to 'gtk/gtktoolbutton.c')
-rw-r--r--gtk/gtktoolbutton.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtktoolbutton.c b/gtk/gtktoolbutton.c
index 5fdcc548f0..74fe78a9b1 100644
--- a/gtk/gtktoolbutton.c
+++ b/gtk/gtktoolbutton.c
@@ -652,6 +652,12 @@ clone_image_menu_size (GtkImage *image, GtkSettings *settings)
gtk_image_get_stock (image, &stock_id, NULL);
return gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_MENU);
}
+ else if (storage_type == GTK_IMAGE_ICON_NAME)
+ {
+ const gchar *icon_name;
+ gtk_image_get_icon_name (image, &icon_name, NULL);
+ return gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU);
+ }
else if (storage_type == GTK_IMAGE_ICON_SET)
{
GtkIconSet *icon_set;