From d3cf3f551911c51f6bd488cdbf49bfa8d1dcdfe8 Mon Sep 17 00:00:00 2001 From: Nuno Araujo Date: Mon, 11 Feb 2013 15:00:05 +0100 Subject: support notification filtering This gives gnome-shell a change to apply notification filtering on this app. https://bugzilla.gnome.org/show_bug.cgi?id=690996 --- data/epiphany.desktop.in.in | 1 + src/window-commands.c | 1 + 2 files changed, 2 insertions(+) diff --git a/data/epiphany.desktop.in.in b/data/epiphany.desktop.in.in index 86522b8c0..314a19154 100644 --- a/data/epiphany.desktop.in.in +++ b/data/epiphany.desktop.in.in @@ -13,5 +13,6 @@ X-GNOME-Bugzilla-Bugzilla=GNOME X-GNOME-Bugzilla-Product=epiphany X-GNOME-Bugzilla-Component=BugBuddyBugs X-GNOME-Bugzilla-Version=@VERSION@ +X-GNOME-UsesNotifications=true Categories=Network;GNOME;GTK;WebBrowser; MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https; diff --git a/src/window-commands.c b/src/window-commands.c index 7da534e7b..7356b83fd 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -844,6 +844,7 @@ dialog_save_as_application_response_cb (GtkDialog *dialog, notify_notification_set_timeout (notification, NOTIFY_EXPIRES_DEFAULT); notify_notification_set_urgency (notification, NOTIFY_URGENCY_LOW); + notify_notification_set_hint (notification, "desktop-entry", g_variant_new_string ("epiphany")); notify_notification_set_hint (notification, "transient", g_variant_new_boolean (TRUE)); notify_notification_show (notification, NULL); } -- cgit v1.2.3