From 4069dd4fa59523179e0141751013df6192609b69 Mon Sep 17 00:00:00 2001 From: Vitaly Sinilin Date: Tue, 8 Sep 2015 00:18:56 +0300 Subject: [PATCH] Fix toolbar visibility The toolbar should not be visible on startup when the configuration file has the line toolbar_hidden = "true" Its visibility state at startup should be the same it was at the last shutdown. --- src/layout.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/layout.c b/src/layout.c index 649ee67e..45c702cc 100644 --- a/src/layout.c +++ b/src/layout.c @@ -271,11 +271,10 @@ static GtkWidget *layout_tool_setup(LayoutWindow *lw) menu_bar = layout_actions_menu_bar(lw); gtk_box_pack_start(GTK_BOX(box), menu_bar, FALSE, FALSE, 0); - gtk_widget_show(menu_bar); toolbar = layout_actions_toolbar(lw, TOOLBAR_MAIN); gtk_box_pack_start(GTK_BOX(box), toolbar, FALSE, FALSE, 0); - if (!lw->options.toolbar_hidden) gtk_widget_show(toolbar); + if (lw->options.toolbar_hidden) gtk_widget_hide(toolbar); tabcomp = tab_completion_new_with_history(&lw->path_entry, NULL, "path_list", -1, layout_path_entry_cb, lw); -- 2.20.1