diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-11-14 04:24:34 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-11-14 04:24:34 +0800 |
commit | 3bf1078e69930d4e11dd7d6ce9f9222bd70595d0 (patch) | |
tree | b27cf8b3e040b7649f51d8e7f818c0698a404de7 /src | |
parent | 14fcccb5ab112e9b5783b01a57d72eb5fe0ae0da (diff) | |
download | gsoc2013-empathy-3bf1078e69930d4e11dd7d6ce9f9222bd70595d0.tar gsoc2013-empathy-3bf1078e69930d4e11dd7d6ce9f9222bd70595d0.tar.gz gsoc2013-empathy-3bf1078e69930d4e11dd7d6ce9f9222bd70595d0.tar.bz2 gsoc2013-empathy-3bf1078e69930d4e11dd7d6ce9f9222bd70595d0.tar.lz gsoc2013-empathy-3bf1078e69930d4e11dd7d6ce9f9222bd70595d0.tar.xz gsoc2013-empathy-3bf1078e69930d4e11dd7d6ce9f9222bd70595d0.tar.zst gsoc2013-empathy-3bf1078e69930d4e11dd7d6ce9f9222bd70595d0.zip |
If chats have no name, use the channel's ID instead of fallback to "Conversation". Fixes bug #560611.
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1717 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-chat-window.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c index 7ae404e09..a6b82dc0f 100644 --- a/src/empathy-chat-window.c +++ b/src/empathy-chat-window.c @@ -263,23 +263,6 @@ chat_window_create_label (EmpathyChatWindow *window, return hbox; } -static const gchar * -chat_window_get_chat_name (EmpathyChat *chat) -{ - EmpathyContact *remote_contact = NULL; - const gchar *name = NULL; - - name = empathy_chat_get_name (chat); - if (!name) { - remote_contact = empathy_chat_get_remote_contact (chat); - if (remote_contact) { - name = empathy_contact_get_name (remote_contact); - } - } - - return name ? name : _("Conversation"); -} - static void chat_window_update (EmpathyChatWindow *window) { @@ -304,7 +287,7 @@ chat_window_update (EmpathyChatWindow *window) first_page = (page_num == 0); last_page = (page_num == (num_pages - 1)); is_connected = empathy_chat_get_tp_chat (priv->current_chat) != NULL; - name = chat_window_get_chat_name (priv->current_chat); + name = empathy_chat_get_name (priv->current_chat); n_chats = g_list_length (priv->chats); DEBUG ("Update window"); @@ -382,7 +365,7 @@ chat_window_update_chat_tab (EmpathyChat *chat) priv = GET_PRIV (window); /* Get information */ - name = chat_window_get_chat_name (chat); + name = empathy_chat_get_name (chat); subject = empathy_chat_get_subject (chat); remote_contact = empathy_chat_get_remote_contact (chat); |