changeset 29962:23dbe381eb7a

Set the GtkTrayIcon invisible before unref'ing it, or else it will leave behind a space every time it's removed. This is more evident if you have the tray icon set to "On Unread Messages". More info at GnomeBug 589860. Fixes #11913.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Mon, 17 May 2010 02:09:35 +0000
parents 04c84a3f9553
children fb2bf8986524 1efb52ff7ad0
files pidgin/gtkdocklet-gtk.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkdocklet-gtk.c	Sun May 16 20:56:47 2010 +0000
+++ b/pidgin/gtkdocklet-gtk.c	Mon May 17 02:09:35 2010 +0000
@@ -107,7 +107,8 @@
 	g_return_if_fail(docklet != NULL);
 
 	pidgin_docklet_remove();
-	
+
+	gtk_status_icon_set_visible(docklet, FALSE);
 	g_object_unref(G_OBJECT(docklet));
 	docklet = NULL;