[Xfce4-commits] [panel-plugins/xfce4-hardware-monitor-plugin] 12/96: Improve comments

noreply at xfce.org noreply at xfce.org
Thu Nov 27 22:20:17 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 fd0cc3900f2a611a445f8ddf7d4f0425b32790fc
Author: Omega Weapon <OmegaPhil at gmail.com>
Date:   Sun Oct 27 13:03:16 2013 +0000

    Improve comments
---
 src/applet.cpp   |   12 +++++++++---
 src/bar-view.cpp |    2 +-
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/applet.cpp b/src/applet.cpp
index 4c81e03..0309011 100644
--- a/src/applet.cpp
+++ b/src/applet.cpp
@@ -462,8 +462,12 @@ void Applet::add_monitor(Monitor *monitor)
 
   /* Read and write config locations and the open call are be different
    * in XFCE4 - hence the duplication here */
-  
-  if (monitor->get_settings_dir().empty()) {
+
+  /* Checking if monitor has a defined settings directory and therefore
+   * settings to load */
+  if (monitor->get_settings_dir().empty())
+  {
+    // It hasn't - creating one and saving
     monitor->set_settings_dir(find_empty_monitor_dir());
 
     // Search for a writeable settings file, create one if it doesnt exist
@@ -490,7 +494,9 @@ void Applet::add_monitor(Monitor *monitor)
   }
   else
   {
-    // Search for settings file
+    /* Monitor has a saved settings directory and therefore settings to
+     * load
+     * Search for settings file */
     gchar* file = xfce_panel_plugin_lookup_rc_file(panel_applet);
  
     if (file)
diff --git a/src/bar-view.cpp b/src/bar-view.cpp
index d5b4086..269cd09 100644
--- a/src/bar-view.cpp
+++ b/src/bar-view.cpp
@@ -101,7 +101,7 @@ void Bar::draw(Gnome::Canvas::Canvas &canvas,
 	       Applet *applet, int width, int height, int no, int total,
 	       double time_offset)
 {
-  // get drawing attributes
+  // Get drawing attributes
   unsigned int fill_color;
 
   // Fetching assigned settings group

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


More information about the Xfce4-commits mailing list