From 66d811099009da67061067c2a2c59f6b16530494 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Fri, 5 Aug 2005 09:11:41 +0000 Subject: [PATCH] Call gtk_widget_show() for toolbar buttons --- moo/mooedit/moofileview.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/moo/mooedit/moofileview.c b/moo/mooedit/moofileview.c index 1e105b86..0e4e046d 100644 --- a/moo/mooedit/moofileview.c +++ b/moo/mooedit/moofileview.c @@ -480,7 +480,9 @@ static GtkWidget *create_toolbar (MooFileView *fileview) /* Up */ icon = gtk_image_new_from_stock (GTK_STOCK_GO_UP, GTK_ICON_SIZE_MENU); + gtk_widget_show (GTK_WIDGET (icon)); item = gtk_tool_button_new (icon, NULL); + gtk_widget_show (GTK_WIDGET (item)); gtk_tool_item_set_tooltip (item, tooltips, "Up", "Up"); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1); g_object_set_data (G_OBJECT (item), "moo-file-view-signal", @@ -492,7 +494,9 @@ static GtkWidget *create_toolbar (MooFileView *fileview) /* Back */ icon = gtk_image_new_from_stock (GTK_STOCK_GO_BACK, GTK_ICON_SIZE_MENU); + gtk_widget_show (GTK_WIDGET (icon)); item = gtk_tool_button_new (icon, NULL); + gtk_widget_show (GTK_WIDGET (item)); gtk_tool_item_set_tooltip (item, tooltips, "Back", "Back"); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1); g_object_set_data (G_OBJECT (item), "moo-file-view-signal", @@ -504,7 +508,9 @@ static GtkWidget *create_toolbar (MooFileView *fileview) /* Forward */ icon = gtk_image_new_from_stock (GTK_STOCK_GO_FORWARD, GTK_ICON_SIZE_MENU); + gtk_widget_show (GTK_WIDGET (icon)); item = gtk_tool_button_new (icon, NULL); + gtk_widget_show (GTK_WIDGET (item)); gtk_tool_item_set_tooltip (item, tooltips, "Forward", "Forward"); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1); g_object_set_data (G_OBJECT (item), "moo-file-view-signal", @@ -516,7 +522,9 @@ static GtkWidget *create_toolbar (MooFileView *fileview) /* Home */ icon = gtk_image_new_from_stock (GTK_STOCK_HOME, GTK_ICON_SIZE_MENU); + gtk_widget_show (GTK_WIDGET (icon)); item = gtk_tool_button_new (icon, NULL); + gtk_widget_show (GTK_WIDGET (item)); gtk_tool_item_set_tooltip (item, tooltips, "Home", "Home"); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1); g_object_set_data (G_OBJECT (item), "moo-file-view-signal",