[gnome-commander] Use reference to GnomeCmdData::Options instead of gnome_cmd_data in gnome_cmd_style_create()



commit 9c9e6555c0773612408b32358360c8070cb8634f
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sun Nov 13 23:10:23 2011 +0100

    Use reference to GnomeCmdData::Options instead of gnome_cmd_data in gnome_cmd_style_create()

 src/gnome-cmd-style.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-style.cc b/src/gnome-cmd-style.cc
index 4082d84..e4b3e45 100644
--- a/src/gnome-cmd-style.cc
+++ b/src/gnome-cmd-style.cc
@@ -168,8 +168,8 @@ void gnome_cmd_style_create (GnomeCmdData::Options &cfg)
     if (sel_list_style) g_object_unref (sel_list_style);
     if (alt_sel_list_style) g_object_unref (alt_sel_list_style);
 
-    GnomeCmdColorTheme *cols = gnome_cmd_data.options.get_current_color_theme();
-    const gchar *font_name = gnome_cmd_data.options.list_font;
+    GnomeCmdColorTheme *cols = cfg.get_current_color_theme();
+    const gchar *font_name = cfg.list_font;
 
     list_style = create_list_style (cols, font_name);
     alt_list_style = create_alt_list_style (cols, font_name);



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