[epiphany] support notification filtering



commit d3cf3f551911c51f6bd488cdbf49bfa8d1dcdfe8
Author: Nuno Araujo <nuno araujo russo79 com>
Date:   Mon Feb 11 15:00:05 2013 +0100

    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(+), 0 deletions(-)
---
diff --git a/data/epiphany.desktop.in.in b/data/epiphany.desktop.in.in
index 86522b8..314a191 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 7da534e..7356b83 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);
        }


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