[file-roller] support notification filtering



commit 4ac27df7b58adc2fd8b53d1ef129f9b25ec637ee
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Thu Jan 3 10:11:03 2013 +0100

    support notification filtering
    
    [bug #691048]

 data/file-roller.desktop.in.in |    1 +
 src/fr-window.c                |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/data/file-roller.desktop.in.in b/data/file-roller.desktop.in.in
index f485d34..1a2b94c 100644
--- a/data/file-roller.desktop.in.in
+++ b/data/file-roller.desktop.in.in
@@ -15,3 +15,4 @@ X-GNOME-Bugzilla-Bugzilla=GNOME
 X-GNOME-Bugzilla-Product=file-roller
 X-GNOME-Bugzilla-Component=general
 X-GNOME-Bugzilla-Version= VERSION@
+X-GNOME-UsesNotifications=true
diff --git a/src/fr-window.c b/src/fr-window.c
index 84cb144..a0546a5 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -6204,6 +6204,7 @@ _fr_window_notify_creation_complete (FrWindow *window)
 	/* Translators: %s is a filename */
 	message = g_strdup_printf (_("\"%s\" created successfully"), basename);
 	notification = notify_notification_new (window->priv->batch_title, message, "file-roller");
+	notify_notification_set_hint_string (notification, "desktop-entry", "file-roller");
 
 	notify_data = g_new0 (NotifyData, 1);
 	notify_data->window = window;



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