[Xfce4-commits] [panel-plugins/xfce4-netload-plugin] 05/27: Use GdkRGBA instead of GdkColor
noreply at xfce.org
noreply at xfce.org
Sat May 14 15:53:55 CEST 2016
This is an automated email from the git hooks/post-receive script.
landry pushed a commit to branch master
in repository panel-plugins/xfce4-netload-plugin.
commit 59975fa3971031d2eb62278c6a4ed309e5942256
Author: Skunnyk <skunnyk at alteroot.org>
Date: Tue May 3 14:49:04 2016 +0200
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)
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list