[gnome-commander] Options: use GtkRadioButton for 'Save on exit' settings



commit 9951ee4374b2ebf4b9729e1d12097bbba491fd75
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sun Aug 15 18:55:29 2010 +0200

    Options: use GtkRadioButton for 'Save on exit' settings

 src/gnome-cmd-data.cc           |    2 +-
 src/gnome-cmd-options-dialog.cc |   13 ++++++-------
 2 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index c85f501..504c78c 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -939,7 +939,7 @@ GnomeCmdData::GnomeCmdData()
     cmdline_history = NULL;
     cmdline_history_length = 0;
 
-    save_dirs_on_exit = TRUE;
+    save_dirs_on_exit = FALSE;
     save_tabs_on_exit = TRUE;
 
     allow_multiple_instances = FALSE;
diff --git a/src/gnome-cmd-options-dialog.cc b/src/gnome-cmd-options-dialog.cc
index 48f9c09..39a343c 100644
--- a/src/gnome-cmd-options-dialog.cc
+++ b/src/gnome-cmd-options-dialog.cc
@@ -159,13 +159,12 @@ static GtkWidget *create_general_tab (GtkWidget *parent)
     cat = create_category (parent, cat_box, _("Save on exit"));
     gtk_box_pack_start (GTK_BOX (vbox), cat, FALSE, TRUE, 0);
 
-    check = create_check (parent, _("Directories"), "save_dirs");
-    gtk_box_pack_start (GTK_BOX (cat_box), check, FALSE, TRUE, 0);
-    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), gnome_cmd_data.save_dirs_on_exit);
-
-    check = create_check (parent, _("Tabs"), "save_tabs");
-    gtk_box_pack_start (GTK_BOX (cat_box), check, FALSE, TRUE, 0);
-    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), gnome_cmd_data.save_tabs_on_exit);
+    radio = create_radio (parent, NULL, _("Directories"), "save_dirs");
+    gtk_box_pack_start (GTK_BOX (cat_box), radio, FALSE, TRUE, 0);
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radio), gnome_cmd_data.save_dirs_on_exit);
+    radio = create_radio (parent, get_radio_group (radio), _("Tabs"), "save_tabs");
+    gtk_container_add (GTK_CONTAINER (cat_box), radio);
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radio), gnome_cmd_data.save_tabs_on_exit);
 
 
     return frame;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]