[gnome-commander] Change gnome_cmd_style_create() cfg param from GnomeCmdData& to GnomeCmdData::Options&



commit 3f829f3631e9a1dd893dfd8a20f36c58e8f50a4b
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sat Nov 12 16:09:26 2011 +0100

    Change gnome_cmd_style_create() cfg param from GnomeCmdData& to GnomeCmdData::Options&

 src/gnome-cmd-main-win.cc     |    2 +-
 src/gnome-cmd-style.cc        |    2 +-
 src/gnome-cmd-style.h         |    2 +-
 src/gnome-cmd-user-actions.cc |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-cmd-main-win.cc b/src/gnome-cmd-main-win.cc
index eda87f5..ac35531 100644
--- a/src/gnome-cmd-main-win.cc
+++ b/src/gnome-cmd-main-win.cc
@@ -947,7 +947,7 @@ gboolean GnomeCmdMainWin::key_pressed(GdkEventKey *event)
             case GDK_H:
             case GDK_h:
                 gnome_cmd_data.options.filter.hidden = !gnome_cmd_data.options.filter.hidden;
-                gnome_cmd_style_create (gnome_cmd_data);
+                gnome_cmd_style_create (gnome_cmd_data.options);
                 update_style();
                 gnome_cmd_data.save();
                 return TRUE;
diff --git a/src/gnome-cmd-style.cc b/src/gnome-cmd-style.cc
index 1de4725..251262d 100644
--- a/src/gnome-cmd-style.cc
+++ b/src/gnome-cmd-style.cc
@@ -161,7 +161,7 @@ inline GtkStyle *create_alt_sel_list_style (GnomeCmdColorTheme *cols, const gcha
 }
 
 
-void gnome_cmd_style_create (GnomeCmdData &cfg)
+void gnome_cmd_style_create (GnomeCmdData::Options &cfg)
 {
     if (list_style) g_object_unref (list_style);
     if (alt_list_style) g_object_unref (alt_list_style);
diff --git a/src/gnome-cmd-style.h b/src/gnome-cmd-style.h
index e846208..4f9d8e2 100644
--- a/src/gnome-cmd-style.h
+++ b/src/gnome-cmd-style.h
@@ -26,6 +26,6 @@
 extern GtkStyle *list_style, *sel_list_style;
 extern GtkStyle *alt_list_style, *alt_sel_list_style;
 
-void gnome_cmd_style_create (GnomeCmdData &cfg);
+void gnome_cmd_style_create (GnomeCmdData::Options &cfg);
 
 #endif // __GNOME_CMD_STYLE_H__
diff --git a/src/gnome-cmd-user-actions.cc b/src/gnome-cmd-user-actions.cc
index 16149aa..a87a289 100644
--- a/src/gnome-cmd-user-actions.cc
+++ b/src/gnome-cmd-user-actions.cc
@@ -1792,7 +1792,7 @@ void options_edit (GtkMenuItem *menuitem, gpointer not_used)
 {
     if (gnome_cmd_options_dialog (*main_win, gnome_cmd_data))
     {
-        gnome_cmd_style_create (gnome_cmd_data);
+        gnome_cmd_style_create (gnome_cmd_data.options);
         main_win->update_style();
 
         gnome_cmd_data.save();



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