summaryrefslogtreecommitdiff
path: root/gtk/gtkmodelmenuitem.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-03-13 12:14:38 +0100
committerTimm Bäder <mail@baedert.org>2017-03-13 12:14:38 +0100
commit6607ef4ae25abdce8b5cdbb91a23480847361827 (patch)
tree69c1116d974f91e3607a2a70f8e8272f7a3f7966 /gtk/gtkmodelmenuitem.c
parent373d261d155bb7f3d8a0079588a6b50eff27a5b5 (diff)
downloadgtk+-6607ef4ae25abdce8b5cdbb91a23480847361827.tar.gz
modelmenuitem: Remove unnecessary gtk_widget_show calls
Diffstat (limited to 'gtk/gtkmodelmenuitem.c')
-rw-r--r--gtk/gtkmodelmenuitem.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gtk/gtkmodelmenuitem.c b/gtk/gtkmodelmenuitem.c
index 7c5264c2ff..7e2d12e38b 100644
--- a/gtk/gtkmodelmenuitem.c
+++ b/gtk/gtkmodelmenuitem.c
@@ -184,7 +184,6 @@ gtk_model_menu_item_set_icon (GtkModelMenuItem *item,
g_object_unref (child);
gtk_container_add (GTK_CONTAINER (item), box);
- gtk_widget_show (box);
/* Now we have a box */
child = box;
@@ -202,7 +201,6 @@ gtk_model_menu_item_set_icon (GtkModelMenuItem *item,
image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_MENU);
gtk_image_set_pixel_size (GTK_IMAGE (image), 16);
gtk_box_pack_start (GTK_BOX (child), image, FALSE, FALSE);
- gtk_widget_show (image);
}
g_object_notify (G_OBJECT (item), "icon");