From: Vitaly Sinilin Date: Mon, 7 Sep 2015 21:18:56 +0000 (+0300) Subject: Fix toolbar visibility X-Git-Tag: v1.3~77 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=4069dd4fa59523179e0141751013df6192609b69 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. --- 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);