[network-manager-applet] applet: support notification filtering



commit f9023a0c242cd5f8ebcf999c57def5b7240e2299
Author: B.Prathibha <prathibhab cdac in>
Date:   Fri Jan 25 18:27:24 2013 +0530

    applet: support notification filtering
    
    This gives gnome-shell a chance to apply notification filtering on
    this app.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=692523

 nm-applet.desktop.in |    1 +
 src/applet.c         |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
old mode 100755
new mode 100644
diff --git a/nm-applet.desktop.in b/nm-applet.desktop.in
index 0cda7e1..996fbac 100644
--- a/nm-applet.desktop.in
+++ b/nm-applet.desktop.in
@@ -11,3 +11,4 @@ X-GNOME-Bugzilla-Bugzilla=GNOME
 X-GNOME-Bugzilla-Product=NetworkManager
 X-GNOME-Bugzilla-Component=general
 X-GNOME-Autostart-enabled=true
+X-GNOME-UsesNotifications=true
diff --git a/src/applet.c b/src/applet.c
index bade3e3..a79192d 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -936,6 +936,7 @@ applet_do_notify (NMApplet *applet,
 
 #if HAVE_LIBNOTIFY_07
 	notify_notification_set_hint (notify, "transient", g_variant_new_boolean (TRUE));
+	notify_notification_set_hint (notify, "desktop-entry", "nm-applet");
 #else
 	notify_notification_attach_to_status_icon (notify, applet->status_icon);
 #endif



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