[Xfce4-commits] [panel-plugins/xfce4-sensors-plugin] 04/10: Correct order of updating value and color for tacho widgets; issue draw event for tachos in refresh function
noreply at xfce.org
noreply at xfce.org
Sat Mar 18 18:26:44 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 c9b549d8877ce66d7708e00301ad6266e470bdaa
Author: Fabian <timystery at arcor.de>
Date: Sat Mar 18 01:24:33 2017 +0100
Correct order of updating value and color for tacho widgets; issue draw event for tachos in refresh function
---
panel-plugin/sensors-plugin.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/panel-plugin/sensors-plugin.c b/panel-plugin/sensors-plugin.c
index 87e26c0..42ccd61 100644
--- a/panel-plugin/sensors-plugin.c
+++ b/panel-plugin/sensors-plugin.c
@@ -343,12 +343,16 @@ sensors_update_tacho_panel (t_sensors *sensors)
val_percentage = sensors_get_percentage (ptr_chipfeature);
gtk_sensorstacho_set_size(GTK_SENSORSTACHO(ptr_tacho), size_panel);
- gtk_sensorstacho_set_value(GTK_SENSORSTACHO(ptr_tacho), val_percentage);
gtk_sensorstacho_set_color(GTK_SENSORSTACHO(ptr_tacho), ptr_chipfeature->color);
+ gtk_sensorstacho_set_value(GTK_SENSORSTACHO(ptr_tacho), val_percentage);
}
}
}
+ //gdk_window_invalidate_region(gtk_widget_get_window(sensors->eventbox /* or widget_sensors ? */, );
+
+ gtk_widget_queue_draw (GTK_WIDGET(sensors->eventbox));
+
TRACE("leaves sensors_update_tacho_panel");
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list