diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-07-07 23:21:43 +0800 |
---|---|---|
committer | Travis Reitter <treitter@gmail.com> | 2010-07-22 04:25:09 +0800 |
commit | b6568db4f81cf4e78e96aa5fe23f020de5ff6557 (patch) | |
tree | 7f0dd7dbfb45315d5bf16f0db623a98d3fe6f19d /libempathy-gtk/empathy-chat.c | |
parent | a244924636a2a0cde9da06909ac2b1b141ce3b9e (diff) | |
download | gsoc2013-empathy-b6568db4f81cf4e78e96aa5fe23f020de5ff6557.tar gsoc2013-empathy-b6568db4f81cf4e78e96aa5fe23f020de5ff6557.tar.gz gsoc2013-empathy-b6568db4f81cf4e78e96aa5fe23f020de5ff6557.tar.bz2 gsoc2013-empathy-b6568db4f81cf4e78e96aa5fe23f020de5ff6557.tar.lz gsoc2013-empathy-b6568db4f81cf4e78e96aa5fe23f020de5ff6557.tar.xz gsoc2013-empathy-b6568db4f81cf4e78e96aa5fe23f020de5ff6557.tar.zst gsoc2013-empathy-b6568db4f81cf4e78e96aa5fe23f020de5ff6557.zip |
Merge EmpathyContact:name and *_set_alias() to EmpathyContact:alias
The "name" API was a relic of Gossip.
Diffstat (limited to 'libempathy-gtk/empathy-chat.c')
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index edb132936..5d8fe71d3 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -1119,7 +1119,7 @@ chat_message_received (EmpathyChat *chat, EmpathyMessage *message) sender = empathy_message_get_sender (message); DEBUG ("Appending new message from %s (%d)", - empathy_contact_get_name (sender), + empathy_contact_get_alias (sender), empathy_contact_get_handle (sender)); empathy_chat_view_append_message (chat->view, message); @@ -1600,7 +1600,7 @@ chat_input_key_press_event_cb (GtkWidget *widget, * which might be cased all wrong. * Fixes #120876 * */ - text = empathy_contact_get_name (completed_list->data); + text = empathy_contact_get_alias (completed_list->data); } else { text = completed; @@ -1610,7 +1610,7 @@ chat_input_key_press_event_cb (GtkWidget *widget, * */ message = g_string_new (""); for (l = completed_list; l != NULL; l = l->next) { - g_string_append (message, empathy_contact_get_name (l->data)); + g_string_append (message, empathy_contact_get_alias (l->data)); g_string_append (message, " - "); } empathy_chat_view_append_event (chat->view, message->str); @@ -2057,7 +2057,7 @@ build_part_message (guint reason, const gchar *actor_name = NULL; if (actor != NULL) { - actor_name = empathy_contact_get_name (actor); + actor_name = empathy_contact_get_alias (actor); } /* Having an actor only really makes sense for a few actions... */ @@ -2113,7 +2113,7 @@ chat_members_changed_cb (EmpathyTpChat *tp_chat, EmpathyChat *chat) { EmpathyChatPriv *priv = GET_PRIV (chat); - const gchar *name = empathy_contact_get_name (contact); + const gchar *name = empathy_contact_get_alias (contact); gchar *str; g_return_if_fail (TP_CHANNEL_GROUP_CHANGE_REASON_RENAMED != reason); @@ -2148,8 +2148,8 @@ chat_member_renamed_cb (EmpathyTpChat *tp_chat, gchar *str; str = g_strdup_printf (_("%s is now known as %s"), - empathy_contact_get_name (old_contact), - empathy_contact_get_name (new_contact)); + empathy_contact_get_alias (old_contact), + empathy_contact_get_alias (new_contact)); empathy_chat_view_append_event (chat->view, str); g_free (str); } @@ -2817,7 +2817,7 @@ empathy_chat_init (EmpathyChat *chat) g_timeout_add_seconds (1, chat_block_events_timeout_cb, chat); /* Add nick name completion */ - priv->completion = g_completion_new ((GCompletionFunc) empathy_contact_get_name); + priv->completion = g_completion_new ((GCompletionFunc) empathy_contact_get_alias); g_completion_set_compare (priv->completion, chat_contacts_completion_func); chat_create_ui (chat); @@ -3118,7 +3118,7 @@ empathy_chat_get_name (EmpathyChat *chat) ret = priv->name; if (!ret && priv->remote_contact) { - ret = empathy_contact_get_name (priv->remote_contact); + ret = empathy_contact_get_alias (priv->remote_contact); } if (!ret) |