summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-08-10 23:18:18 +0200
committermonsta <[email protected]>2017-02-16 15:04:39 +0300
commita35361ca05ca671afaf49a476b48081573fc26cc (patch)
tree9e1938d904272f4a89ac56d1ee1e7d87d02e4a37
parent0ee6802bdf738e3e9880dbc87e2900dd842b29a6 (diff)
downloadmate-sensors-applet-a35361ca05ca671afaf49a476b48081573fc26cc.tar.bz2
mate-sensors-applet-a35361ca05ca671afaf49a476b48081573fc26cc.tar.xz
[GTK+3] active-sensor: fix a warning and use gdk_rgba_parse ()
port of 0b3e8cb7a0e52fd5918fb447d2bb163cdf345413 to mixed GTK+2/3 code
-rw-r--r--sensors-applet/active-sensor.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sensors-applet/active-sensor.c b/sensors-applet/active-sensor.c
index f542055..91899b9 100644
--- a/sensors-applet/active-sensor.c
+++ b/sensors-applet/active-sensor.c
@@ -682,8 +682,13 @@ void active_sensor_update(ActiveSensor *active_sensor,
/* do graph if needed */
if (display_mode == DISPLAY_GRAPH) {
/* update graph color in case has changed */
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gdk_rgba_parse(&(active_sensor->graph_color),
+ graph_color);
+#else
gdk_color_parse(graph_color,
&(active_sensor->graph_color));
+#endif
gtk_widget_queue_draw (active_sensor->graph);
if (tooltip) {