From ed31322a3790105797d56f453aaf220d7812d65a Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Mon, 10 Aug 2009 02:36:27 -0500 Subject: 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 file changed, 5 insertions(+) (limited to 'embed') 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; } -- cgit v1.2.3