[empathy] notification: set the "desktop-entry" hint



commit e7072d88a143a1f7b659bc67eaf0e7b540b41200
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Jan 3 13:06:54 2013 +0100

    notification: set the "desktop-entry" hint
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691043

 libempathy-gtk/empathy-notify-manager.c |    4 ++++
 libempathy-gtk/empathy-notify-manager.h |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-notify-manager.c b/libempathy-gtk/empathy-notify-manager.c
index 89ab3c1..b37c1f5 100644
--- a/libempathy-gtk/empathy-notify-manager.c
+++ b/libempathy-gtk/empathy-notify-manager.c
@@ -226,5 +226,9 @@ empathy_notify_manager_create_notification (const gchar *summary,
 
   notification = notify_notification_new (summary, body, icon);
 
+  notify_notification_set_hint (notification,
+      EMPATHY_NOTIFY_MANAGER_CAP_DESKTOP_ENTRY,
+      g_variant_new_string ("empathy"));
+
   return notification;
 }
diff --git a/libempathy-gtk/empathy-notify-manager.h b/libempathy-gtk/empathy-notify-manager.h
index 53c7b38..923ab4a 100644
--- a/libempathy-gtk/empathy-notify-manager.h
+++ b/libempathy-gtk/empathy-notify-manager.h
@@ -39,6 +39,7 @@ G_BEGIN_DECLS
 #define EMPATHY_NOTIFY_MANAGER_CAP_ICON_STATIC         "icon-static"
 #define EMPATHY_NOTIFY_MANAGER_CAP_IMAGE_SVG_XML       "image/svg+xml"
 #define EMPATHY_NOTIFY_MANAGER_CAP_SOUND                "sound"
+#define EMPATHY_NOTIFY_MANAGER_CAP_DESKTOP_ENTRY       "desktop-entry"
 /* notify-osd specific */
 #define EMPATHY_NOTIFY_MANAGER_CAP_X_CANONICAL_APPEND              "x-canonical-append"
 #define EMPATHY_NOTIFY_MANAGER_CAP_X_CANONICAL_PRIVATE_ICON_ONLY   "x-canonical-private-icon-only"



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