[Xfce4-commits] [panel-plugins/xfce4-hardware-monitor-plugin] 41/96: Save curve viewer_type in the config file default group

noreply at xfce.org noreply at xfce.org
Thu Nov 27 22:20:46 CET 2014


This is an automated email from the git hooks/post-receive script.

nick pushed a commit to branch master
in repository panel-plugins/xfce4-hardware-monitor-plugin.

commit 488fe7259e6f5a1f62f9cf3135d82e10f4036323
Author: Omega Weapon <OmegaPhil at gmail.com>
Date:   Wed Nov 6 19:47:08 2013 +0000

    Save curve viewer_type in the config file default group
---
 src/preferences-window.cpp |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/preferences-window.cpp b/src/preferences-window.cpp
index c9dfa78..a66c86b 100644
--- a/src/preferences-window.cpp
+++ b/src/preferences-window.cpp
@@ -444,6 +444,9 @@ void PreferencesWindow::on_curve_radiobutton_toggled()
       XfceRc* settings = xfce_rc_simple_open(file, false);
       g_free(file);
 
+      // Ensuring default group is in focus
+      xfce_rc_set_group(settings, "[NULL]");
+
       // Updating configuration
       xfce_rc_write_entry(settings, "viewer_type", "curve");
 
@@ -795,7 +798,7 @@ void PreferencesWindow::on_selection_changed()
 
     // Loading up new monitor colour
     // Fetching assigned settings group
-    Glib::ustring key, mon_dir = (*(*i)[mc.monitor]).get_settings_dir();
+    Glib::ustring mon_dir = (*(*i)[mc.monitor]).get_settings_dir();
 
     // Search for settings file
     gchar* file = xfce_panel_plugin_lookup_rc_file(applet.panel_applet);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list