[krb5-auth-dialog] Set hint to allow the shell to filter by application
- From: Guido GÃnther <guidog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [krb5-auth-dialog] Set hint to allow the shell to filter by application
- Date: Sun, 17 Feb 2013 12:18:28 +0000 (UTC)
commit 502027b2fd9b14d7afa79c6b1f0df627a4a9acc6
Author: Guido GÃnther <agx sigxcpu org>
Date: Sun Feb 17 13:11:04 2013 +0100
Set hint to allow the shell to filter by application
https://live.gnome.org/GnomeGoals/NotificationSource
src/ka-applet.c | 8 +++++++-
src/krb5-auth-dialog.desktop.in | 1 +
2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/ka-applet.c b/src/ka-applet.c
index 2dd54f5..d8e9157 100644
--- a/src/ka-applet.c
+++ b/src/ka-applet.c
@@ -1,6 +1,6 @@
/* Krb5 Auth Applet -- Acquire and release kerberos tickets
*
- * (C) 2008,2009,2010 Guido Guenther <agx sigxcpu org>
+ * (C) 2008,2009,2010,2013 Guido Guenther <agx sigxcpu org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -621,6 +621,12 @@ ka_send_event_notification (KaApplet *self,
notify_notification_set_urgency (notification, NOTIFY_URGENCY_NORMAL);
}
+#if HAVE_NOTIFY_NOTIFICATION_SET_HINT
+ notify_notification_set_hint (notification,
+ "desktop-entry",
+ g_variant_new_string (PACKAGE));
+#endif
+
if (self->priv->ns_persistence) {
hint = "resident";
timeout = NOTIFY_EXPIRES_NEVER;
diff --git a/src/krb5-auth-dialog.desktop.in b/src/krb5-auth-dialog.desktop.in
index 7c2223a..33ac10d 100644
--- a/src/krb5-auth-dialog.desktop.in
+++ b/src/krb5-auth-dialog.desktop.in
@@ -9,3 +9,4 @@ Categories=GNOME;GTK;Utility;Network;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=krb5-auth-dialog
X-GNOME-Bugzilla-Component=general
+X-GNOME-UsesNotifications=true
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]