[Xfce4-commits] [panel-plugins/xfce4-netload-plugin] 01/02: Reapply css style upon mode change to ensure sizing is applied
noreply at xfce.org
noreply at xfce.org
Sat Dec 24 23:46:40 CET 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 b2e899fabbd7fddf8fff3efb3a25f795606a3ef5
Author: Landry Breuil <landry at xfce.org>
Date: Sat Dec 24 23:43:29 2016 +0100
Reapply css style upon mode change to ensure sizing is applied
---
panel-plugin/netload.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/panel-plugin/netload.c b/panel-plugin/netload.c
index 81e344c..cef1c56 100644
--- a/panel-plugin/netload.c
+++ b/panel-plugin/netload.c
@@ -147,6 +147,7 @@ typedef struct
} t_global_monitor;
+static void set_progressbar_csscolor(GtkWidget*, GdkRGBA*);
/* ---------------------------------------------------------------------------------------------- */
static gboolean update_monitors(t_global_monitor *global)
{
@@ -389,6 +390,10 @@ static void monitor_set_mode (XfcePanelPlugin *plugin, XfcePanelPluginMode mode,
}
}
+#if GTK_CHECK_VERSION (3, 20, 0)
+ for (i = 0; i < SUM; i++)
+ set_progressbar_csscolor(global->monitor->status[i], &global->monitor->options.color[i]);
+#endif
monitor_set_size(plugin, xfce_panel_plugin_get_size(plugin), global);
run_update( global );
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list