[epiphany] downloader-view.c: hide the tray icon before unref
- From: Diego Escalante Urrelo <diegoe src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [epiphany] downloader-view.c: hide the tray icon before unref
- Date: Mon, 10 Aug 2009 07:44:20 +0000 (UTC)
commit ed31322a3790105797d56f453aaf220d7812d65a
Author: Diego Escalante Urrelo <diegoe gnome org>
Date: Mon Aug 10 02:36:27 2009 -0500
downloader-view.c: hide the tray icon before unref
Apparently due to a GTK+/gnome-panel bug (bug #340110), the status icon space
is not freed in the notification area.
The best work-around is to hide the icon before unrefing it.
Bug #591189
embed/downloader-view.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index 36b25fb..da28caf 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -263,6 +263,11 @@ downloader_view_finalize (GObject *object)
if (priv->status_icon != NULL)
{
+ /* FIXME: this should not be necessary (setting visible to
+ * FALSE), but we have to work-around a GTK+/gnome-panel bug:
+ * http://bugzilla.gnome.org/show_bug.cgi?id=340110
+ */
+ gtk_status_icon_set_visible (priv->status_icon, FALSE);
g_object_unref (priv->status_icon);
priv->status_icon = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]