aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNuno Araujo <nuno.araujo@russo79.com>2013-02-11 22:00:05 +0800
committerXan Lopez <xan@igalia.com>2013-02-14 21:51:36 +0800
commitd3cf3f551911c51f6bd488cdbf49bfa8d1dcdfe8 (patch)
tree18cc3000d097124b48e42ad20116b9eedc8e31b8
parent238e2ec8a279c5f58e80a198fcfd315aa0a8dbb1 (diff)
downloadgsoc2013-epiphany-d3cf3f551911c51f6bd488cdbf49bfa8d1dcdfe8.tar
gsoc2013-epiphany-d3cf3f551911c51f6bd488cdbf49bfa8d1dcdfe8.tar.gz
gsoc2013-epiphany-d3cf3f551911c51f6bd488cdbf49bfa8d1dcdfe8.tar.bz2
gsoc2013-epiphany-d3cf3f551911c51f6bd488cdbf49bfa8d1dcdfe8.tar.lz
gsoc2013-epiphany-d3cf3f551911c51f6bd488cdbf49bfa8d1dcdfe8.tar.xz
gsoc2013-epiphany-d3cf3f551911c51f6bd488cdbf49bfa8d1dcdfe8.tar.zst
gsoc2013-epiphany-d3cf3f551911c51f6bd488cdbf49bfa8d1dcdfe8.zip
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
-rw-r--r--data/epiphany.desktop.in.in1
-rw-r--r--src/window-commands.c1
2 files changed, 2 insertions, 0 deletions
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);
}