aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-01-09 00:33:46 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-01-09 01:08:26 +0800
commitbed514dd862a5b7968d42c0cfb2bd3afe46e4d84 (patch)
tree4cee190e64a633b53cf529c67f904c0d0b9d58db /plugins
parent8a2c950b83f79f8394c928199c5bead4d5bd5da8 (diff)
downloadgsoc2013-evolution-bed514dd862a5b7968d42c0cfb2bd3afe46e4d84.tar
gsoc2013-evolution-bed514dd862a5b7968d42c0cfb2bd3afe46e4d84.tar.gz
gsoc2013-evolution-bed514dd862a5b7968d42c0cfb2bd3afe46e4d84.tar.bz2
gsoc2013-evolution-bed514dd862a5b7968d42c0cfb2bd3afe46e4d84.tar.lz
gsoc2013-evolution-bed514dd862a5b7968d42c0cfb2bd3afe46e4d84.tar.xz
gsoc2013-evolution-bed514dd862a5b7968d42c0cfb2bd3afe46e4d84.tar.zst
gsoc2013-evolution-bed514dd862a5b7968d42c0cfb2bd3afe46e4d84.zip
Bug 691047 - Support notification filtering
For compliance with: https://live.gnome.org/GnomeGoals/NotificationSource
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mail-notification/mail-notification.c4
-rw-r--r--plugins/publish-calendar/publish-calendar.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/plugins/mail-notification/mail-notification.c b/plugins/mail-notification/mail-notification.c
index e0973d22fa..bbfc685e11 100644
--- a/plugins/mail-notification/mail-notification.c
+++ b/plugins/mail-notification/mail-notification.c
@@ -442,6 +442,10 @@ new_notify_status (EMEventTargetFolder *t)
notify_notification_set_timeout (
notify, NOTIFY_EXPIRES_DEFAULT);
+ notify_notification_set_hint (
+ notify, "desktop-entry",
+ g_variant_new_string (PACKAGE));
+
/* Check if actions are supported */
if (can_support_actions ()) {
gchar *label;
diff --git a/plugins/publish-calendar/publish-calendar.c b/plugins/publish-calendar/publish-calendar.c
index 95fa1553c7..cc04b2e762 100644
--- a/plugins/publish-calendar/publish-calendar.c
+++ b/plugins/publish-calendar/publish-calendar.c
@@ -149,6 +149,9 @@ update_publish_notification (GtkMessageType msg_type,
notify = notify_notification_new (_("Calendar Publishing"), actual_msg->str, stock_name);
notify_notification_set_urgency (notify, NOTIFY_URGENCY_NORMAL);
notify_notification_set_timeout (notify, NOTIFY_EXPIRES_DEFAULT);
+ notify_notification_set_hint (
+ notify, "desktop-entry",
+ g_variant_new_string (PACKAGE));
g_timeout_add (500, show_notify_cb, NULL);
g_signal_connect (