[network-manager-applet] applet: mark VPN notifications as transient (bgo #652143)
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] applet: mark VPN notifications as transient (bgo #652143)
- Date: Thu, 9 Jun 2011 13:48:53 +0000 (UTC)
commit 336b5a8d35617651cfdc7849d1dd3d5dcbc6522f
Author: Dan Williams <dcbw redhat com>
Date: Thu Jun 9 08:51:00 2011 -0500
applet: mark VPN notifications as transient (bgo #652143)
src/applet.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/applet.c b/src/applet.c
index 0f45d74..2f2786e 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -839,7 +839,9 @@ applet_do_notify (NMApplet *applet,
g_free (escaped);
applet->notification = notify;
-#if !HAVE_LIBNOTIFY_07
+#if HAVE_LIBNOTIFY_07
+ notify_notification_set_hint (notify, "transient", g_variant_new_boolean (TRUE));
+#else
notify_notification_attach_to_status_icon (notify, applet->status_icon);
#endif
notify_notification_set_urgency (notify, urgency);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]