[vino] Add "desktop-entry" notification hint, bug 691045



commit 367b6cdadeef4a3de1087bfd9791da6cb9495402
Author: David King <amigadave amigadave com>
Date:   Sun Jan 6 11:44:03 2013 +0000

    Add "desktop-entry" notification hint, bug 691045
    
    Support notification filtering by setting a hint to match up
    NotifyNotifications with the Vinagre desktop file.

 server/vino-status-icon.c      |    2 ++
 server/vino-status-tube-icon.c |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/server/vino-status-icon.c b/server/vino-status-icon.c
index 491aba3..26ae545 100644
--- a/server/vino-status-icon.c
+++ b/server/vino-status-icon.c
@@ -655,6 +655,8 @@ vino_status_icon_show_new_client_notification (gpointer user_data)
                             G_CALLBACK (vino_status_handle_new_client_notification_closed),
                             icon);
 
+  notify_notification_set_hint_string (icon->priv->new_client_notification,
+                                       "desktop-entry", PACKAGE_TARNAME);
   notify_notification_set_timeout (icon->priv->new_client_notification,
                                    NOTIFICATION_TIMEOUT * 1000);
 
diff --git a/server/vino-status-tube-icon.c b/server/vino-status-tube-icon.c
index 717922d..9b8fef9 100644
--- a/server/vino-status-tube-icon.c
+++ b/server/vino-status-tube-icon.c
@@ -423,6 +423,8 @@ vino_status_tube_icon_show_notif (VinoStatusTubeIcon *icon,
 
   g_free (filename);
 
+  notify_notification_set_hint_string (icon->priv->new_client_notification,
+                                       "desktop-entry", PACKAGE_TARNAME);
   notify_notification_set_timeout (icon->priv->new_client_notification,
       NOTIFICATION_TIMEOUT * 1000);
 



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