[Xfce4-commits] [panel-plugins/xfce4-fsguard-plugin] 03/06: Only call fsguard_refresh_monitor_color() if the icon changed
noreply at xfce.org
noreply at xfce.org
Sun Feb 19 20:06:51 CET 2017
This is an automated email from the git hooks/post-receive script.
landry pushed a commit to branch master
in repository panel-plugins/xfce4-fsguard-plugin.
commit 604d725ec8ecd921b0bd44f2ba51a66e41c3b5cb
Author: Landry Breuil <landry at xfce.org>
Date: Sun Feb 19 20:04:15 2017 +0100
Only call fsguard_refresh_monitor_color() if the icon changed
---
panel-plugin/fsguard.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/panel-plugin/fsguard.c b/panel-plugin/fsguard.c
index 3142abc..898e3a4 100644
--- a/panel-plugin/fsguard.c
+++ b/panel-plugin/fsguard.c
@@ -179,7 +179,7 @@ fsguard_refresh_icon (FsGuard *fsguard)
}
static void
-fsguard_refresh_monitor (FsGuard *fsguard)
+fsguard_refresh_monitor_color (FsGuard *fsguard, gchar *css_class)
{
GdkRGBA color;
@@ -322,7 +322,8 @@ fsguard_check_fs (FsGuard *fsguard)
if (fsguard->show_progress_bar) {
gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR(fsguard->progress_bar),
(total > 0 ) ? 1.0 - (freespace / total) : 0.0);
- fsguard_refresh_monitor (fsguard);
+ if (icon_id != fsguard->icon_id)
+ fsguard_refresh_monitor_color (fsguard, css_class);
}
gtk_widget_set_tooltip_text(fsguard->ebox, msg);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list