From: Colin Clark Date: Wed, 31 May 2017 17:45:01 +0000 (+0100) Subject: Addl fix #488: Hide menus when not in split mode X-Git-Tag: v1.4~166 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=2e7f616a730ccaa640663023fc4602cf7c2b6c9a Addl fix #488: Hide menus when not in split mode https://github.com/BestImageViewer/geeqie/issues/488 --- diff --git a/src/layout_util.c b/src/layout_util.c index ffc5d6ce..36e27056 100644 --- a/src/layout_util.c +++ b/src/layout_util.c @@ -2509,6 +2509,11 @@ static void layout_util_sync_views(LayoutWindow *lw) action = gtk_action_group_get_action(lw->action_group, "SplitSingle"); gtk_radio_action_set_current_value(GTK_RADIO_ACTION(action), lw->split_mode); + action = gtk_action_group_get_action(lw->action_group, "SplitNextPane"); + gtk_action_set_sensitive(action, !(lw->split_mode == SPLIT_NONE)); + action = gtk_action_group_get_action(lw->action_group, "SplitPreviousPane"); + gtk_action_set_sensitive(action, !(lw->split_mode == SPLIT_NONE)); + action = gtk_action_group_get_action(lw->action_group, "ViewIcons"); gtk_radio_action_set_current_value(GTK_RADIO_ACTION(action), lw->options.file_view_type);