diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-03-28 19:48:38 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-03-28 19:48:38 +0800 |
commit | ba3ffc72a2b424eaa79a94e6a2390b0b5858b867 (patch) | |
tree | 01a0dc218d436b83e245501b0a14f2d31a1e5484 /src/empathy-chat-window.c | |
parent | 98724dbfa33099bba07ba8951950a14303e763cc (diff) | |
parent | ed85fe70b223a778b5d7bdca6b4fe8d5ac327959 (diff) | |
download | gsoc2013-empathy-ba3ffc72a2b424eaa79a94e6a2390b0b5858b867.tar gsoc2013-empathy-ba3ffc72a2b424eaa79a94e6a2390b0b5858b867.tar.gz gsoc2013-empathy-ba3ffc72a2b424eaa79a94e6a2390b0b5858b867.tar.bz2 gsoc2013-empathy-ba3ffc72a2b424eaa79a94e6a2390b0b5858b867.tar.lz gsoc2013-empathy-ba3ffc72a2b424eaa79a94e6a2390b0b5858b867.tar.xz gsoc2013-empathy-ba3ffc72a2b424eaa79a94e6a2390b0b5858b867.tar.zst gsoc2013-empathy-ba3ffc72a2b424eaa79a94e6a2390b0b5858b867.zip |
Merge remote-tracking branch 'wjt/652800-661731-notifications'
Diffstat (limited to 'src/empathy-chat-window.c')
-rw-r--r-- | src/empathy-chat-window.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c index f80f09611..ac3584f34 100644 --- a/src/empathy-chat-window.c +++ b/src/empathy-chat-window.c @@ -1568,9 +1568,14 @@ chat_window_show_or_update_notification (EmpathyChatWindow *window, EMPATHY_NOTIFY_MANAGER_CAP_X_CANONICAL_APPEND, "1"); } - notify_notification_set_hint (notification, - EMPATHY_NOTIFY_MANAGER_CAP_CATEGORY, - g_variant_new_string ("im.received")); + { + const gchar *category = empathy_chat_is_room (chat) + ? EMPATHY_NOTIFICATION_CATEGORY_MENTIONED + : EMPATHY_NOTIFICATION_CATEGORY_CHAT; + notify_notification_set_hint (notification, + EMPATHY_NOTIFY_MANAGER_CAP_CATEGORY, + g_variant_new_string (category)); + } } pixbuf = empathy_notify_manager_get_pixbuf_for_notification (priv->notify_mgr, |