changeset 1480:077924265c28

split-mode cleanup and improvements
author nadvornik
date Sat, 28 Mar 2009 15:09:09 +0000
parents d062522699dc
children 96897bd5f6cd
files src/layout.c src/layout_util.c
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/layout.c	Fri Mar 27 08:05:14 2009 +0000
+++ b/src/layout.c	Sat Mar 28 15:09:09 2009 +0000
@@ -1662,6 +1662,7 @@
 
 	if (lw->utility_box)
 		{
+		layout_split_change(lw, lw->split_mode); /* this re-creates image frame for the new configuration */
 		image_sb = lw->utility_box;
 		}
 	else
--- a/src/layout_util.c	Fri Mar 27 08:05:14 2009 +0000
+++ b/src/layout_util.c	Sat Mar 28 15:09:09 2009 +0000
@@ -576,10 +576,7 @@
 	ImageSplitMode mode;
 
 	layout_exit_fullscreen(lw);
-
 	mode = gtk_radio_action_get_current_value(action);
-	if (mode == lw->split_mode) mode = 0; /* toggle back */
-
 	layout_split_change(lw, mode);
 }
 
@@ -1923,6 +1920,9 @@
 	action = gtk_action_group_get_action(lw->action_group, "FolderTree");
 	radio_action_set_current_value(GTK_RADIO_ACTION(action), lw->options.dir_view_type);
 
+	action = gtk_action_group_get_action(lw->action_group, "SplitSingle");
+	radio_action_set_current_value(GTK_RADIO_ACTION(action), lw->split_mode);
+
 	action = gtk_action_group_get_action(lw->action_group, "ViewIcons");
 	gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), lw->options.file_view_type);