[Xfce4-commits] [panel-plugins/xfce4-sensors-plugin] 01/11: Some code cleanup

noreply at xfce.org noreply at xfce.org
Tue Mar 7 23:38:25 CET 2017


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

timystery pushed a commit to branch master
in repository panel-plugins/xfce4-sensors-plugin.

commit 855667d60e78b80a3b7c9f529149c93eae2248f6
Author: Fabian <timystery at arcor.de>
Date:   Sun Mar 5 23:06:44 2017 +0100

    Some code cleanup
---
 include/sensors-interface-plugin.h | 33 ++-------------------------------
 1 file changed, 2 insertions(+), 31 deletions(-)

diff --git a/include/sensors-interface-plugin.h b/include/sensors-interface-plugin.h
index 4e0c6cd..009e1dc 100644
--- a/include/sensors-interface-plugin.h
+++ b/include/sensors-interface-plugin.h
@@ -41,11 +41,13 @@
 #define MAX_NUM_CHIPS 10
 #define MAX_NUM_FEATURES 256
 
+
 /**
  * Sensors module
  */
 typedef struct {
 
+    /* pointer for Xfce Panel */
     XfcePanelPlugin *plugin;
 
     /* eventbox to catch events */
@@ -133,41 +135,10 @@ typedef struct {
     /* FIXME:    Might be replaced by GPtrArray as well */
     GtkWidget* tachos[MAX_NUM_CHIPS][MAX_NUM_FEATURES];
 
-    /* contains structure from libsensors */
-    /* const sensors_chip_name *chipName[SENSORS]; */
-
-    /* formatted sensor chip names, e.g. 'asb-100-45' */
-    /* gchar *sensorId[SENSORS]; */
-
-    /* unformatted sensor feature names, e.g. 'Vendor' */
-    /* gchar *sensorNames[SENSORS][FEATURES_PER_SENSOR]; */
-
-    /* minimum and maximum values (GUI mode only) */
-    /* glong sensorMinValues[SENSORS][FEATURES_PER_SENSOR]; */
-    /* glong sensorMaxValues[SENSORS][FEATURES_PER_SENSOR]; */
-
-    /* unformatted sensor feature values */
-    /* double sensorRawValues[SENSORS][FEATURES_PER_SENSOR]; */
-
-    /* formatted (%f5.2) sensor feature values */
-    /* gchar *sensorValues[SENSORS][FEATURES_PER_SENSOR]; */
-
-    /* TRUE if sensorNames are set */
-    /* gboolean sensorValid[SENSORS][FEATURES_PER_SENSOR]; */
-
-    /* show sensor in panel */
-    /* gboolean sensorCheckBoxes[SENSORS][FEATURES_PER_SENSOR]; */
-
     /* sensor types to display values in appropriate format */
     /* sensor_type sensor_types[SENSORS][FEATURES_PER_SENSOR]; */
     GPtrArray *chips;
 
-    /* sensor colors in panel */
-    /* gchar *sensorColors[SENSORS][FEATURES_PER_SENSOR]; */
-
-    /* number in list <--> number in array */
-    /* gint sensorAddress[NUM_SENSOR_CHIPS][FEATURES_PER_SENSOR]; */
-
     /* double-click improvement as suggested on xfce4-goodies at berlios.de */
     /* whether to execute command on double click */
     gboolean exec_command;

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


More information about the Xfce4-commits mailing list