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 /src/empathy-event-manager.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 'src/empathy-event-manager.c')
-rw-r--r-- | src/empathy-event-manager.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c index bf3a48a8a..3f4281fbf 100644 --- a/src/empathy-event-manager.c +++ b/src/empathy-event-manager.c @@ -476,10 +476,10 @@ event_channel_process_voip_func (EventPriv *event) GTK_MESSAGE_DIALOG (dialog), video ? _("%s is video calling you. Do you want to answer?"): _("%s is calling you. Do you want to answer?"), - empathy_contact_get_name (event->approval->contact)); + empathy_contact_get_alias (event->approval->contact)); title = g_strdup_printf (_("Incoming call from %s"), - empathy_contact_get_name (event->approval->contact)); + empathy_contact_get_alias (event->approval->contact)); gtk_window_set_title (GTK_WINDOW (dialog), title); g_free (title); @@ -540,7 +540,7 @@ event_manager_chat_message_received_cb (EmpathyTpChat *tp_chat, event = event_lookup_by_approval (approval->manager, approval); sender = empathy_message_get_sender (message); - header = empathy_contact_get_name (sender); + header = empathy_contact_get_alias (sender); msg = empathy_message_get_body (message); channel = empathy_tp_chat_get_channel (tp_chat); @@ -621,7 +621,7 @@ event_manager_media_channel_got_contact (EventManagerApproval *approval) header = g_strdup_printf ( video ? _("Incoming video call from %s") :_("Incoming call from %s"), - empathy_contact_get_name (approval->contact)); + empathy_contact_get_alias (approval->contact)); event_manager_add (approval->manager, approval->contact, EMPATHY_EVENT_TYPE_VOIP, @@ -707,7 +707,7 @@ event_room_channel_process_func (EventPriv *event) gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), _("%s is inviting you to join %s"), - empathy_contact_get_name (event->approval->contact), + empathy_contact_get_alias (event->approval->contact), tp_channel_get_identifier (channel)); gtk_dialog_set_default_response (GTK_DIALOG (dialog), @@ -758,7 +758,7 @@ event_manager_muc_invite_got_contact_cb (TpConnection *connection, NULL, NULL, &invite_msg); msg = g_strdup_printf (_("%s invited you to join %s"), - empathy_contact_get_name (approval->contact), + empathy_contact_get_alias (approval->contact), tp_channel_get_identifier (approval->main_channel)); event_manager_add (approval->manager, approval->contact, @@ -785,7 +785,7 @@ event_manager_ft_got_contact_cb (TpConnection *connection, approval->contact = g_object_ref (contact); header = g_strdup_printf (_("Incoming file transfer from %s"), - empathy_contact_get_name (approval->contact)); + empathy_contact_get_alias (approval->contact)); event_manager_add (approval->manager, approval->contact, EMPATHY_EVENT_TYPE_TRANSFER, EMPATHY_IMAGE_DOCUMENT_SEND, header, NULL, @@ -986,7 +986,7 @@ event_manager_pendings_changed_cb (EmpathyContactList *list, } header = g_strdup_printf (_("Subscription requested by %s"), - empathy_contact_get_name (contact)); + empathy_contact_get_alias (contact)); if (!EMP_STR_EMPTY (message)) event_msg = g_strdup_printf (_("\nMessage: %s"), message); @@ -1033,7 +1033,7 @@ event_manager_presence_changed_cb (EmpathyContact *contact, EMPATHY_PREFS_NOTIFICATIONS_CONTACT_SIGNOUT)) { header = g_strdup_printf (_("%s is now offline."), - empathy_contact_get_name (contact)); + empathy_contact_get_alias (contact)); event_manager_add (manager, contact, EMPATHY_EVENT_TYPE_PRESENCE, EMPATHY_IMAGE_AVATAR_DEFAULT, header, NULL, NULL, NULL, NULL); @@ -1053,7 +1053,7 @@ event_manager_presence_changed_cb (EmpathyContact *contact, EMPATHY_PREFS_NOTIFICATIONS_CONTACT_SIGNIN)) { header = g_strdup_printf (_("%s is now online."), - empathy_contact_get_name (contact)); + empathy_contact_get_alias (contact)); event_manager_add (manager, contact, EMPATHY_EVENT_TYPE_PRESENCE, EMPATHY_IMAGE_AVATAR_DEFAULT, header, NULL, NULL, NULL, NULL); |