[Xfce4-commits] [panel-plugins/xfce4-hardware-monitor-plugin] 16/96: Only change viewer type in preferences-window.cpp when the radiobutton is active

noreply at xfce.org noreply at xfce.org
Thu Nov 27 22:20:21 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 1026214be29ca92705b0113d284f90d3369014ff
Author: Omega Weapon <OmegaPhil at gmail.com>
Date:   Sun Oct 27 15:51:25 2013 +0000

    Only change viewer type in preferences-window.cpp when the radiobutton is active
---
 src/preferences-window.cpp |   24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

diff --git a/src/preferences-window.cpp b/src/preferences-window.cpp
index eb963ad..df415eb 100644
--- a/src/preferences-window.cpp
+++ b/src/preferences-window.cpp
@@ -472,11 +472,13 @@ void PreferencesWindow::on_curve_radiobutton_toggled()
         " save viewer type in "
         "PreferencesWindow::on_curve_radiobutton_toggled!\n");
     }
+
+    // Changing viewer type
+    viewer_type_listener(0, "curve");
   }
 
   size_outer_vbox->property_visible() = active;
   monitor_curve_options->property_visible() = active;
-  viewer_type_listener(0, "curve");
 }
 
 void PreferencesWindow::on_bar_radiobutton_toggled()
@@ -507,11 +509,13 @@ void PreferencesWindow::on_bar_radiobutton_toggled()
         " save viewer type in "
         "PreferencesWindow::on_bar_radiobutton_toggled!\n");
     }
+
+    // Changing viewer type
+    viewer_type_listener(0, "bar");
   }
 
   size_outer_vbox->property_visible() = active;
   monitor_bar_options->property_visible() = active;
-  viewer_type_listener(0, "bar");
 }
 
 void PreferencesWindow::on_vbar_radiobutton_toggled()
@@ -542,11 +546,13 @@ void PreferencesWindow::on_vbar_radiobutton_toggled()
         " save viewer type in "
         "PreferencesWindow::on_vbar_radiobutton_toggled!\n");
     }
+
+    // Changing viewer type
+    viewer_type_listener(0, "vbar");
   }
 
   size_outer_vbox->property_visible() = active;
   monitor_vbar_options->property_visible() = active;
-  viewer_type_listener(0, "vbar");
 }
 
 void PreferencesWindow::on_column_radiobutton_toggled()
@@ -577,11 +583,13 @@ void PreferencesWindow::on_column_radiobutton_toggled()
         " save viewer type in "
         "PreferencesWindow::on_column_radiobutton_toggled!\n");
     }
+
+    // Changing viewer type
+    viewer_type_listener(0, "column");
   }
   
   size_outer_vbox->property_visible() = active;
   monitor_column_options->property_visible() = active;
-  viewer_type_listener(0, "column");
 }
 
 void PreferencesWindow::on_text_radiobutton_toggled()
@@ -612,10 +620,12 @@ void PreferencesWindow::on_text_radiobutton_toggled()
         " save viewer type in "
         "PreferencesWindow::on_text_radiobutton_toggled!\n");
     }
+
+    // Changing viewer type
+    viewer_type_listener(0, "text");
   }
   
   font_outer_vbox->property_visible() = active;
-  viewer_type_listener(0, "text");
 }
 
 void PreferencesWindow::on_flame_radiobutton_toggled()
@@ -646,11 +656,13 @@ void PreferencesWindow::on_flame_radiobutton_toggled()
         " save viewer type in "
         "PreferencesWindow::on_flame_radiobutton_toggled!\n");
     }
+
+    // Changing viewer type
+    viewer_type_listener(0, "flame");
   }
 
   size_outer_vbox->property_visible() = active;
   monitor_flame_options->property_visible() = active;
-  viewer_type_listener(0, "flame");
 }
 
 void PreferencesWindow::on_size_scale_changed()

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


More information about the Xfce4-commits mailing list