]> git.0d.be Git - empathy.git/commitdiff
notification: set the "desktop-entry" hint
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 3 Jan 2013 12:06:54 +0000 (13:06 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 3 Jan 2013 12:08:05 +0000 (13:08 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=691043

libempathy-gtk/empathy-notify-manager.c
libempathy-gtk/empathy-notify-manager.h

index 89ab3c1c8e34902b3e9b71ffd339e0653096ec67..b37c1f59a47a3abd6e96243c29ca5b4a1d4bf51c 100644 (file)
@@ -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;
 }
index 53c7b38f910d90eb5b44e9a2a5bb564cf82fe7bd..923ab4a54a80188cff0e4eea3c769268cbb1fbcf 100644 (file)
@@ -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"