aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@gnome.org>2009-08-10 15:36:27 +0800
committerDiego Escalante Urrelo <diegoe@gnome.org>2009-08-10 15:42:16 +0800
commited31322a3790105797d56f453aaf220d7812d65a (patch)
tree3dd6268d2399b5b70d2bd5abf30460f013fe1b5e
parent893114a0a7b0c8b774b927dbc7de1844fb670ac3 (diff)
downloadgsoc2013-epiphany-ed31322a3790105797d56f453aaf220d7812d65a.tar
gsoc2013-epiphany-ed31322a3790105797d56f453aaf220d7812d65a.tar.gz
gsoc2013-epiphany-ed31322a3790105797d56f453aaf220d7812d65a.tar.bz2
gsoc2013-epiphany-ed31322a3790105797d56f453aaf220d7812d65a.tar.lz
gsoc2013-epiphany-ed31322a3790105797d56f453aaf220d7812d65a.tar.xz
gsoc2013-epiphany-ed31322a3790105797d56f453aaf220d7812d65a.tar.zst
gsoc2013-epiphany-ed31322a3790105797d56f453aaf220d7812d65a.zip
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
-rw-r--r--embed/downloader-view.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index 36b25fbe5..da28caf23 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;
}