From b2e899fabbd7fddf8fff3efb3a25f795606a3ef5 Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Sat, 24 Dec 2016 23:43:29 +0100 Subject: [PATCH] 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 );