[Xfce4-commits] <xfce4-power-manager:eric/bugzilla-patches> Fix empty systray icon in some panels on battery removal and addition
Eric Koegel
noreply at xfce.org
Sun Jan 19 06:32:04 CET 2014
Updating branch refs/heads/eric/bugzilla-patches
to 2382793018f1c3848929d019be706bf5dcacf039 (commit)
from 79e77846329775ea4986ecb8c414642f61746b70 (commit)
commit 2382793018f1c3848929d019be706bf5dcacf039
Author: Henry Gebhardt <hsggebhardt at googlemail.com>
Date: Wed Feb 29 14:14:33 2012 +0100
Fix empty systray icon in some panels on battery removal and addition
Unreferencing a GtkStatusIcon is not enough to get rid of it entirely.
This fixes these bugs:
https://bugzilla.xfce.org/show_bug.cgi?id=7603
http://bugzilla.xfce.org/show_bug.cgi?id=8424
https://bugs.launchpad.net/ubuntu/+source/lxpanel/+bug/846878
https://bugzilla.redhat.com/show_bug.cgi?id=765726
Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
src/xfpm-battery.c | 2 ++
src/xfpm-power.c | 1 +
2 files changed, 3 insertions(+)
diff --git a/src/xfpm-battery.c b/src/xfpm-battery.c
index b3690d2..2e0e504 100644
--- a/src/xfpm-battery.c
+++ b/src/xfpm-battery.c
@@ -788,6 +788,8 @@ xfpm_battery_finalize (GObject *object)
g_object_unref (battery->priv->notify);
g_object_unref (battery->priv->button);
+ gtk_status_icon_set_visible(GTK_STATUS_ICON(battery), FALSE);
+
G_OBJECT_CLASS (xfpm_battery_parent_class)->finalize (object);
}
diff --git a/src/xfpm-power.c b/src/xfpm-power.c
index a53753f..febac1d 100644
--- a/src/xfpm-power.c
+++ b/src/xfpm-power.c
@@ -1137,6 +1137,7 @@ xfpm_power_hide_adapter_icon (XfpmPower *power)
if ( power->priv->adapter_icon )
{
+ gtk_status_icon_set_visible (power->priv->adapter_icon, FALSE);
g_object_unref (power->priv->adapter_icon);
power->priv->adapter_icon = NULL;
}
More information about the Xfce4-commits
mailing list