From 59975fa3971031d2eb62278c6a4ed309e5942256 Mon Sep 17 00:00:00 2001 From: Skunnyk Date: Tue, 3 May 2016 14:49:04 +0200 Subject: [PATCH] Use GdkRGBA instead of GdkColor --- panel-plugin/netload.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/panel-plugin/netload.c b/panel-plugin/netload.c index 02c279d..c0f888a 100644 --- a/panel-plugin/netload.c +++ b/panel-plugin/netload.c @@ -77,7 +77,7 @@ typedef struct gboolean auto_max; gulong max[SUM]; gint update_interval; - GdkColor color[SUM]; + GdkRGBA color[SUM]; gchar *label_text; gchar *network_device; gchar *old_network_device; @@ -453,7 +453,7 @@ static t_global_monitor * monitor_new(XfcePanelPlugin *plugin) for (i = 0; i < SUM; i++) { - gdk_color_parse(DEFAULT_COLOR[i], &global->monitor->options.color[i]); + gdk_rgba_parse(&global->monitor->options.color[i], DEFAULT_COLOR[i]); global->monitor->history[i][0] = 0; global->monitor->history[i][1] = 0; @@ -631,13 +631,11 @@ static void monitor_read_config(XfcePanelPlugin *plugin, t_global_monitor *globa if ((value = xfce_rc_read_entry (rc, "Color_In", NULL)) != NULL) { - gdk_color_parse(value, - &global->monitor->options.color[IN]); + gdk_rgba_parse(&global->monitor->options.color[IN], value); } if ((value = xfce_rc_read_entry (rc, "Color_Out", NULL)) != NULL) { - gdk_color_parse(value, - &global->monitor->options.color[OUT]); + gdk_rgba_parse(&global->monitor->options.color[OUT], value); } if ((value = xfce_rc_read_entry (rc, "Text", NULL)) && *value) {