[gnome-bluetooth/gnome-2-32] Work-around GTK+ bug not showing status icon
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/gnome-2-32] Work-around GTK+ bug not showing status icon
- Date: Tue, 10 Aug 2010 14:18:49 +0000 (UTC)
commit 61d024794a3e2e401a7fbe5dbdc3c327413c4da4
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 f82b106..d2a4f51 100644
--- a/applet/notify.c
+++ b/applet/notify.c
@@ -115,6 +115,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]