aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-01-03 20:06:54 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-01-03 20:08:05 +0800
commite7072d88a143a1f7b659bc67eaf0e7b540b41200 (patch)
tree35e6db84155db165029592294e6ddf25059af113
parent12b23410bd90309789d3f3b5206f0cde015c31b0 (diff)
downloadgsoc2013-empathy-e7072d88a143a1f7b659bc67eaf0e7b540b41200.tar
gsoc2013-empathy-e7072d88a143a1f7b659bc67eaf0e7b540b41200.tar.gz
gsoc2013-empathy-e7072d88a143a1f7b659bc67eaf0e7b540b41200.tar.bz2
gsoc2013-empathy-e7072d88a143a1f7b659bc67eaf0e7b540b41200.tar.lz
gsoc2013-empathy-e7072d88a143a1f7b659bc67eaf0e7b540b41200.tar.xz
gsoc2013-empathy-e7072d88a143a1f7b659bc67eaf0e7b540b41200.tar.zst
gsoc2013-empathy-e7072d88a143a1f7b659bc67eaf0e7b540b41200.zip
notification: set the "desktop-entry" hint
https://bugzilla.gnome.org/show_bug.cgi?id=691043
-rw-r--r--libempathy-gtk/empathy-notify-manager.c4
-rw-r--r--libempathy-gtk/empathy-notify-manager.h1
2 files changed, 5 insertions, 0 deletions
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"