Mercurial > hg > forks > geeqie
changeset 2259:07b24c8cac7e
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.
author | Vitaly Sinilin <vs@kp4.ru> |
---|---|
date | Tue, 08 Sep 2015 00:18:56 +0300 |
parents | a9b5d451b83a |
children | 41ff0bdf1c66 |
files | src/layout.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/layout.c Tue Aug 11 23:26:32 2015 +0100 +++ b/src/layout.c Tue Sep 08 00:18:56 2015 +0300 @@ -271,11 +271,10 @@ 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);