aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd@luon.net>2013-01-03 18:42:13 +0800
committerSjoerd Simons <sjoerd@luon.net>2013-01-03 22:30:47 +0800
commit55ce28ebe490bc803dd524970ebb187402bb6031 (patch)
tree9add34c7bd5b98583fa64feb6ed04c2a7d168dfb /src
parent05c170e3de251f2161e9ff5bb1eac4785cdc91da (diff)
downloadgsoc2013-empathy-55ce28ebe490bc803dd524970ebb187402bb6031.tar
gsoc2013-empathy-55ce28ebe490bc803dd524970ebb187402bb6031.tar.gz
gsoc2013-empathy-55ce28ebe490bc803dd524970ebb187402bb6031.tar.bz2
gsoc2013-empathy-55ce28ebe490bc803dd524970ebb187402bb6031.tar.lz
gsoc2013-empathy-55ce28ebe490bc803dd524970ebb187402bb6031.tar.xz
gsoc2013-empathy-55ce28ebe490bc803dd524970ebb187402bb6031.tar.zst
gsoc2013-empathy-55ce28ebe490bc803dd524970ebb187402bb6031.zip
Recognize both handheld and phone clienttypes as mobile devices
Empathy currently displays a phone icon for clients which indicate that they're phones. However some mobile clients use the "handheld" client type instead (e.g. Xabber on android devices). While changing things around, i've also refactored the code a bit to ensure that the determination will stay consistent in the various location if it's changed in future.
Diffstat (limited to 'src')
-rw-r--r--src/empathy-chat-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 06d1b0cec..676c4ef23 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -986,9 +986,9 @@ chat_window_update_chat_tab_full (EmpathyChat *chat,
const gchar * const *types;
types = empathy_contact_get_client_types (remote_contact);
- if (types != NULL && !tp_strdiff (types[0], "phone"))
+ if (empathy_client_types_contains_mobile_device ((GStrv) types))
{
- /* I'm on a phone ! */
+ /* I'm on a mobile device ! */
gchar *tmp = name;
name = g_strdup_printf ("☎ %s", name);