From e7072d88a143a1f7b659bc67eaf0e7b540b41200 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 3 Jan 2013 13:06:54 +0100 Subject: 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(+) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-notify-manager.c b/libempathy-gtk/empathy-notify-manager.c index 89ab3c1c8..b37c1f59a 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 53c7b38f9..923ab4a54 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" -- cgit v1.2.3