# HG changeset patch # User nadvornik # Date 1238252949 0 # Node ID 077924265c285d707462712e5e6196607ed9a721 # Parent d062522699dc817c4b1993459cd4d42a6c7e56c3 split-mode cleanup and improvements diff -r d062522699dc -r 077924265c28 src/layout.c --- 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 diff -r d062522699dc -r 077924265c28 src/layout_util.c --- 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);