[brasero] Support notification filtering



commit b6fc2ba59cc6bdf439cbb970e8bbcbc57205b71b
Author: Jose Rostagno <joserostagno vijona com ar>
Date:   Mon Jan 28 16:15:27 2013 -0300

    Support notification filtering
    
    Set the desktop-entry hint on all notifications, to give gnome-shell
    a chance to apply notification filtering.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=690998

 data/brasero.desktop.in.in            |    1 +
 libbrasero-burn/brasero-burn-dialog.c |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/data/brasero.desktop.in.in b/data/brasero.desktop.in.in
index 618ddb1..59dd1d8 100644
--- a/data/brasero.desktop.in.in
+++ b/data/brasero.desktop.in.in
@@ -15,6 +15,7 @@ X-GNOME-Bugzilla-Bugzilla=GNOME
 X-GNOME-Bugzilla-Product=brasero
 X-GNOME-Bugzilla-Component=general
 X-GNOME-Bugzilla-Version= VERSION@
+X-GNOME-UsesNotifications=true
 Actions=Window;Image;Disc;Audio;Video;
 
 [Desktop Action Window]
diff --git a/libbrasero-burn/brasero-burn-dialog.c b/libbrasero-burn/brasero-burn-dialog.c
index 5d3920a..bd1c1da 100644
--- a/libbrasero-burn/brasero-burn-dialog.c
+++ b/libbrasero-burn/brasero-burn-dialog.c
@@ -169,6 +169,8 @@ brasero_burn_dialog_notify_daemon (BraseroBurnDialog *dialog,
 
 	notify_notification_set_timeout (notification, 10000);
 	notify_notification_set_urgency (notification, NOTIFY_URGENCY_NORMAL);
+	notify_notification_set_hint_string (notification, "desktop-entry",
+                                             "brasero");
 
 	result = notify_notification_show (notification, &error);
 	if (error) {


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