[gnome-bluetooth] Work-around GTK+ bug not showing status icon



commit bf6499679afb9b3421710e44202625f0abfadb44
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Aug 10 15:04:44 2010 +0100

    Work-around GTK+ bug not showing status icon
    
    In some bizarre cases, GTK+ doesn't seem to actually show
    the status icon when created...

 applet/notify.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/applet/notify.c b/applet/notify.c
index e55fa12..6beb0d1 100644
--- a/applet/notify.c
+++ b/applet/notify.c
@@ -122,6 +122,10 @@ GtkStatusIcon *init_notification(void)
 				   _("Bluetooth"));
 	gtk_status_icon_set_tooltip_markup(statusicon, tooltip);
 
+	/* XXX: Make sure the status icon is actually shown */
+	gtk_status_icon_set_visible(statusicon, FALSE);
+	gtk_status_icon_set_visible(statusicon, TRUE);
+
 	return statusicon;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]