[gnome-commander] Options: use cfg for referencing to GnomeCmdData in store_tabs_options()
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Options: use cfg for referencing to GnomeCmdData in store_tabs_options()
- Date: Sun, 6 Nov 2011 13:15:01 +0000 (UTC)
commit 52f38f5c5643b6a604c5d17cdc7064d26f51ceac
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sun Nov 6 13:49:18 2011 +0100
Options: use cfg for referencing to GnomeCmdData in store_tabs_options()
src/gnome-cmd-options-dialog.cc | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/gnome-cmd-options-dialog.cc b/src/gnome-cmd-options-dialog.cc
index 7f756fe..449ccc6 100644
--- a/src/gnome-cmd-options-dialog.cc
+++ b/src/gnome-cmd-options-dialog.cc
@@ -866,20 +866,20 @@ static GtkWidget *create_tabs_tab (GtkWidget *parent, GnomeCmdData &cfg)
}
-inline void store_tabs_options (GtkWidget *dialog)
+inline void store_tabs_options (GtkWidget *dialog, GnomeCmdData &cfg)
{
GtkWidget *always_show_tabs = lookup_widget (dialog, "always_show_tabs");
GtkWidget *tab_lock_icon_radio = lookup_widget (dialog, "tab_lock_icon_radio");
GtkWidget *tab_lock_asterisk_radio = lookup_widget (dialog, "tab_lock_asterisk_radio");
- gnome_cmd_data.always_show_tabs = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (always_show_tabs));
+ cfg.always_show_tabs = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (always_show_tabs));
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (tab_lock_icon_radio)))
- gnome_cmd_data.tab_lock_indicator = GnomeCmdData::TAB_LOCK_ICON;
+ cfg.tab_lock_indicator = GnomeCmdData::TAB_LOCK_ICON;
else if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (tab_lock_asterisk_radio)))
- gnome_cmd_data.tab_lock_indicator = GnomeCmdData::TAB_LOCK_ASTERISK;
+ cfg.tab_lock_indicator = GnomeCmdData::TAB_LOCK_ASTERISK;
else
- gnome_cmd_data.tab_lock_indicator = GnomeCmdData::TAB_LOCK_STYLED_TEXT;
+ cfg.tab_lock_indicator = GnomeCmdData::TAB_LOCK_STYLED_TEXT;
}
@@ -2034,7 +2034,7 @@ gboolean gnome_cmd_options_dialog (GtkWindow *parent, GnomeCmdData &cfg)
store_general_options (dialog, cfg);
store_format_options (dialog, cfg);
store_layout_options (dialog, cfg);
- store_tabs_options (dialog);
+ store_tabs_options (dialog, cfg);
store_confirmation_options (dialog);
store_filter_options (dialog);
store_programs_options (dialog);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]