Mercurial > geeqie
comparison src/layout_util.c @ 1480:077924265c28
split-mode cleanup and improvements
author | nadvornik |
---|---|
date | Sat, 28 Mar 2009 15:09:09 +0000 |
parents | d062522699dc |
children | 9c16a93a0fdf |
comparison
equal
deleted
inserted
replaced
1479:d062522699dc | 1480:077924265c28 |
---|---|
574 { | 574 { |
575 LayoutWindow *lw = data; | 575 LayoutWindow *lw = data; |
576 ImageSplitMode mode; | 576 ImageSplitMode mode; |
577 | 577 |
578 layout_exit_fullscreen(lw); | 578 layout_exit_fullscreen(lw); |
579 | |
580 mode = gtk_radio_action_get_current_value(action); | 579 mode = gtk_radio_action_get_current_value(action); |
581 if (mode == lw->split_mode) mode = 0; /* toggle back */ | |
582 | |
583 layout_split_change(lw, mode); | 580 layout_split_change(lw, mode); |
584 } | 581 } |
585 | 582 |
586 | 583 |
587 static void layout_menu_thumb_cb(GtkToggleAction *action, gpointer data) | 584 static void layout_menu_thumb_cb(GtkToggleAction *action, gpointer data) |
1921 if (!lw->action_group) return; | 1918 if (!lw->action_group) return; |
1922 | 1919 |
1923 action = gtk_action_group_get_action(lw->action_group, "FolderTree"); | 1920 action = gtk_action_group_get_action(lw->action_group, "FolderTree"); |
1924 radio_action_set_current_value(GTK_RADIO_ACTION(action), lw->options.dir_view_type); | 1921 radio_action_set_current_value(GTK_RADIO_ACTION(action), lw->options.dir_view_type); |
1925 | 1922 |
1923 action = gtk_action_group_get_action(lw->action_group, "SplitSingle"); | |
1924 radio_action_set_current_value(GTK_RADIO_ACTION(action), lw->split_mode); | |
1925 | |
1926 action = gtk_action_group_get_action(lw->action_group, "ViewIcons"); | 1926 action = gtk_action_group_get_action(lw->action_group, "ViewIcons"); |
1927 gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), lw->options.file_view_type); | 1927 gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), lw->options.file_view_type); |
1928 | 1928 |
1929 action = gtk_action_group_get_action(lw->action_group, "FloatTools"); | 1929 action = gtk_action_group_get_action(lw->action_group, "FloatTools"); |
1930 gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), lw->options.tools_float); | 1930 gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), lw->options.tools_float); |