[gnome-commander] Options: use cfg for referencing to GnomeCmdData in store_devices_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_devices_options()
- Date: Sun, 6 Nov 2011 13:15:46 +0000 (UTC)
commit 520e900c4a257fdaac6562066aed9e8adfac4926
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sun Nov 6 14:05:53 2011 +0100
Options: use cfg for referencing to GnomeCmdData in store_devices_options()
src/gnome-cmd-options-dialog.cc | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-cmd-options-dialog.cc b/src/gnome-cmd-options-dialog.cc
index f66060f..0352724 100644
--- a/src/gnome-cmd-options-dialog.cc
+++ b/src/gnome-cmd-options-dialog.cc
@@ -1907,13 +1907,13 @@ static GtkWidget *create_devices_tab (GtkWidget *parent, GnomeCmdData &cfg)
}
-inline void store_devices_options (GtkWidget *dialog)
+inline void store_devices_options (GtkWidget *dialog, GnomeCmdData &cfg)
{
GtkWidget *device_only_icon = lookup_widget (dialog, "device_only_icon");
GtkWidget *skip_mounting = lookup_widget (dialog, "skip_mounting");
- gnome_cmd_data.device_only_icon = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (device_only_icon));
- gnome_cmd_data.skip_mounting = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (skip_mounting));
+ cfg.device_only_icon = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (device_only_icon));
+ cfg.skip_mounting = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (skip_mounting));
}
@@ -2017,7 +2017,7 @@ gboolean gnome_cmd_options_dialog (GtkWindow *parent, GnomeCmdData &cfg)
store_confirmation_options (dialog, cfg);
store_filter_options (dialog, cfg);
store_programs_options (dialog, cfg);
- store_devices_options (dialog);
+ store_devices_options (dialog, cfg);
gnome_cmd_style_create ();
main_win->update_style();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]