Call gtk_widget_show() for toolbar buttons
This commit is contained in:
parent
f6a1b0c62f
commit
66d8110990
@ -480,7 +480,9 @@ static GtkWidget *create_toolbar (MooFileView *fileview)
|
|||||||
/* Up */
|
/* Up */
|
||||||
icon = gtk_image_new_from_stock (GTK_STOCK_GO_UP,
|
icon = gtk_image_new_from_stock (GTK_STOCK_GO_UP,
|
||||||
GTK_ICON_SIZE_MENU);
|
GTK_ICON_SIZE_MENU);
|
||||||
|
gtk_widget_show (GTK_WIDGET (icon));
|
||||||
item = gtk_tool_button_new (icon, NULL);
|
item = gtk_tool_button_new (icon, NULL);
|
||||||
|
gtk_widget_show (GTK_WIDGET (item));
|
||||||
gtk_tool_item_set_tooltip (item, tooltips, "Up", "Up");
|
gtk_tool_item_set_tooltip (item, tooltips, "Up", "Up");
|
||||||
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
|
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
|
||||||
g_object_set_data (G_OBJECT (item), "moo-file-view-signal",
|
g_object_set_data (G_OBJECT (item), "moo-file-view-signal",
|
||||||
@ -492,7 +494,9 @@ static GtkWidget *create_toolbar (MooFileView *fileview)
|
|||||||
/* Back */
|
/* Back */
|
||||||
icon = gtk_image_new_from_stock (GTK_STOCK_GO_BACK,
|
icon = gtk_image_new_from_stock (GTK_STOCK_GO_BACK,
|
||||||
GTK_ICON_SIZE_MENU);
|
GTK_ICON_SIZE_MENU);
|
||||||
|
gtk_widget_show (GTK_WIDGET (icon));
|
||||||
item = gtk_tool_button_new (icon, NULL);
|
item = gtk_tool_button_new (icon, NULL);
|
||||||
|
gtk_widget_show (GTK_WIDGET (item));
|
||||||
gtk_tool_item_set_tooltip (item, tooltips, "Back", "Back");
|
gtk_tool_item_set_tooltip (item, tooltips, "Back", "Back");
|
||||||
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
|
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
|
||||||
g_object_set_data (G_OBJECT (item), "moo-file-view-signal",
|
g_object_set_data (G_OBJECT (item), "moo-file-view-signal",
|
||||||
@ -504,7 +508,9 @@ static GtkWidget *create_toolbar (MooFileView *fileview)
|
|||||||
/* Forward */
|
/* Forward */
|
||||||
icon = gtk_image_new_from_stock (GTK_STOCK_GO_FORWARD,
|
icon = gtk_image_new_from_stock (GTK_STOCK_GO_FORWARD,
|
||||||
GTK_ICON_SIZE_MENU);
|
GTK_ICON_SIZE_MENU);
|
||||||
|
gtk_widget_show (GTK_WIDGET (icon));
|
||||||
item = gtk_tool_button_new (icon, NULL);
|
item = gtk_tool_button_new (icon, NULL);
|
||||||
|
gtk_widget_show (GTK_WIDGET (item));
|
||||||
gtk_tool_item_set_tooltip (item, tooltips, "Forward", "Forward");
|
gtk_tool_item_set_tooltip (item, tooltips, "Forward", "Forward");
|
||||||
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
|
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
|
||||||
g_object_set_data (G_OBJECT (item), "moo-file-view-signal",
|
g_object_set_data (G_OBJECT (item), "moo-file-view-signal",
|
||||||
@ -516,7 +522,9 @@ static GtkWidget *create_toolbar (MooFileView *fileview)
|
|||||||
/* Home */
|
/* Home */
|
||||||
icon = gtk_image_new_from_stock (GTK_STOCK_HOME,
|
icon = gtk_image_new_from_stock (GTK_STOCK_HOME,
|
||||||
GTK_ICON_SIZE_MENU);
|
GTK_ICON_SIZE_MENU);
|
||||||
|
gtk_widget_show (GTK_WIDGET (icon));
|
||||||
item = gtk_tool_button_new (icon, NULL);
|
item = gtk_tool_button_new (icon, NULL);
|
||||||
|
gtk_widget_show (GTK_WIDGET (item));
|
||||||
gtk_tool_item_set_tooltip (item, tooltips, "Home", "Home");
|
gtk_tool_item_set_tooltip (item, tooltips, "Home", "Home");
|
||||||
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
|
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
|
||||||
g_object_set_data (G_OBJECT (item), "moo-file-view-signal",
|
g_object_set_data (G_OBJECT (item), "moo-file-view-signal",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user