[Xfce4-commits] [panel-plugins/xfce4-sensors-plugin] 05/07: Reinitialize tacho style variable in each iteration of the loop
noreply at xfce.org
noreply at xfce.org
Mon Oct 22 23:22:39 CEST 2018
This is an automated email from the git hooks/post-receive script.
t i m y s t e r y p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository panel-plugins/xfce4-sensors-plugin.
commit 0557f6d46f63a6398bbf49e84358a85476d6ff94
Author: Fabian <timystery at arcor.de>
Date: Mon Oct 22 23:20:18 2018 +0200
Reinitialize tacho style variable in each iteration of the loop
---
panel-plugin/sensors-plugin.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/panel-plugin/sensors-plugin.c b/panel-plugin/sensors-plugin.c
index dd58d11..2d859b2 100644
--- a/panel-plugin/sensors-plugin.c
+++ b/panel-plugin/sensors-plugin.c
@@ -497,7 +497,7 @@ sensors_add_tacho_display (t_sensors *ptr_sensors)
gboolean has_tachos = FALSE;
GtkWidget *ptr_tacho;
gchar *str_panellabeltext;
- SensorsTachoStyle tacho_style = style_MinGYR; /* default as has been for 10 years */
+ SensorsTachoStyle tacho_style;
gint size_panel = ptr_sensors->panel_size;
@@ -521,6 +521,7 @@ sensors_add_tacho_display (t_sensors *ptr_sensors)
for (idx_feature=0; idx_feature < ptr_chip->num_features; idx_feature++) {
ptr_chipfeature = g_ptr_array_index (ptr_chip->chip_features, idx_feature);
g_assert (ptr_chipfeature != NULL);
+ tacho_style = style_MinGYR; /* default as has been for 10 years */
if (ptr_chipfeature->show == TRUE) {
has_tachos = TRUE;
@@ -529,7 +530,7 @@ sensors_add_tacho_display (t_sensors *ptr_sensors)
case VOLTAGE:
case POWER:
case CURRENT:
- //case TEMPERATURE: // activate for devlopping only
+ //case TEMPERATURE: // activate for developping only
tacho_style = style_MediumYGB;
break;
case ENERGY:
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list