[Xfce4-commits] [panel-plugins/xfce4-hardware-monitor-plugin] 29/96: Remove redundant viewer_size save in Applet::set_viewer_size

noreply at xfce.org noreply at xfce.org
Thu Nov 27 22:20:34 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 506cd4039838525f309e2fa97b240a5440b8fd18
Author: Omega Weapon <OmegaPhil at gmail.com>
Date:   Mon Nov 4 19:17:41 2013 +0000

    Remove redundant viewer_size save in Applet::set_viewer_size
---
 src/applet.cpp |   26 --------------------------
 1 file changed, 26 deletions(-)

diff --git a/src/applet.cpp b/src/applet.cpp
index dab0b5e..cc95501 100644
--- a/src/applet.cpp
+++ b/src/applet.cpp
@@ -480,32 +480,6 @@ void Applet::set_viewer_size(const int size)
 
   viewer_size = size;
 
-  /* Saving
-   * Search for a writeable settings file, create one if it doesnt exist */
-  gchar* file = xfce_panel_plugin_save_location(panel_applet, true);
-
-  if (file)
-  {
-    // Opening setting file
-    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_int_entry(settings, "viewer_size", viewer_size);
-
-    // Close settings file
-    xfce_rc_close(settings);
-  }
-  else
-  {
-    // Unable to obtain writeable config file - informing user and exiting
-    std::cerr << _("Unable to obtain writeable config file path in order to"
-      " save new viewer_size in Applet::set_viewer_size!\n");
-  }
-
   // Debug code
   //std::cout << "Viewer size set to " << viewer_size << "\n";
 }

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


More information about the Xfce4-commits mailing list