[empathy] chat-window: display a phone icon in the tab label
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] chat-window: display a phone icon in the tab label
- Date: Fri, 17 Feb 2012 13:25:59 +0000 (UTC)
commit 3ffffaaf8c00e6ddc78e37dd9bfbc5f38365d4db
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Fri Feb 17 14:13:47 2012 +0100
chat-window: display a phone icon in the tab label
https://bugzilla.gnome.org/show_bug.cgi?id=664045
src/empathy-chat-window.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 4e3f048..c841a5c 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]