changeset 2494:e5625bd7524d

Addl fix #488: Hide menus when not in split mode https://github.com/BestImageViewer/geeqie/issues/488
author Colin Clark <colin.clark@cclark.uk>
date Wed, 31 May 2017 18:45:01 +0100
parents 678ae40bac9e
children 33571d08bc37
files src/layout_util.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/layout_util.c	Wed May 31 11:56:38 2017 +0100
+++ b/src/layout_util.c	Wed May 31 18:45:01 2017 +0100
@@ -2509,6 +2509,11 @@
 	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);