aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-02-17 21:13:47 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-02-17 21:25:45 +0800
commit3ffffaaf8c00e6ddc78e37dd9bfbc5f38365d4db (patch)
treee26a9b82e30d491610da3b186ee3ea2b57ee1eba
parentcc596d0b62855faaaf110ad90bc6d54fdd804464 (diff)
downloadgsoc2013-empathy-3ffffaaf8c00e6ddc78e37dd9bfbc5f38365d4db.tar
gsoc2013-empathy-3ffffaaf8c00e6ddc78e37dd9bfbc5f38365d4db.tar.gz
gsoc2013-empathy-3ffffaaf8c00e6ddc78e37dd9bfbc5f38365d4db.tar.bz2
gsoc2013-empathy-3ffffaaf8c00e6ddc78e37dd9bfbc5f38365d4db.tar.lz
gsoc2013-empathy-3ffffaaf8c00e6ddc78e37dd9bfbc5f38365d4db.tar.xz
gsoc2013-empathy-3ffffaaf8c00e6ddc78e37dd9bfbc5f38365d4db.tar.zst
gsoc2013-empathy-3ffffaaf8c00e6ddc78e37dd9bfbc5f38365d4db.zip
chat-window: display a phone icon in the tab label
https://bugzilla.gnome.org/show_bug.cgi?id=664045
-rw-r--r--src/empathy-chat-window.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 4e3f04807..c841a5c26 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -920,6 +920,19 @@ chat_window_update_chat_tab_full (EmpathyChat *chat,
append_markup_printf (tooltip, "\n%s", _("Typing a message."));
}
+ if (remote_contact != NULL) {
+ const gchar * const *types;
+
+ types = empathy_contact_get_client_types (remote_contact);
+ if (types != NULL && !tp_strdiff (types[0], "phone")) {
+ /* I'm on a phone ! */
+ gchar *tmp = name;
+
+ name = g_strdup_printf ("☎ %s", name);
+ g_free (tmp);
+ }
+ }
+
markup = g_string_free (tooltip, FALSE);
widget = g_object_get_data (G_OBJECT (chat), "chat-window-tab-tooltip-widget");
gtk_widget_set_tooltip_markup (widget, markup);