From 09a49d81dafe86a68546613cfeee4e2a118cf198 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 10 Jun 2010 10:13:09 +0200 Subject: TplLogEntry(Text) has been renamed to TplEntry(Text) --- libempathy/empathy-message.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'libempathy/empathy-message.c') diff --git a/libempathy/empathy-message.c b/libempathy/empathy-message.c index b3234d348..11a926a42 100644 --- a/libempathy/empathy-message.c +++ b/libempathy/empathy-message.c @@ -32,8 +32,8 @@ #include #include -#include -#include +#include +#include #endif /* ENABLE_TPL */ #include "empathy-message.h" @@ -262,7 +262,7 @@ empathy_message_new (const gchar *body) #ifdef ENABLE_TPL EmpathyMessage * -empathy_message_from_tpl_log_entry (TplLogEntry *logentry) +empathy_message_from_tpl_log_entry (TplEntry *logentry) { EmpathyMessage *retval = NULL; TpAccountManager *acc_man = NULL; @@ -271,7 +271,7 @@ empathy_message_from_tpl_log_entry (TplLogEntry *logentry) TplContact *sender = NULL; gchar *body= NULL; - g_return_val_if_fail (TPL_IS_LOG_ENTRY (logentry), NULL); + g_return_val_if_fail (TPL_IS_ENTRY (logentry), NULL); acc_man = tp_account_manager_dup (); /* FIXME Currently Empathy shows in the log viewer only valid accounts, so it @@ -286,24 +286,24 @@ empathy_message_from_tpl_log_entry (TplLogEntry *logentry) * needed anymore any TpAccount passing and the following call will be * useless */ account = tp_account_manager_ensure_account (acc_man, - tpl_log_entry_get_account_path (logentry)); + tpl_entry_get_account_path (logentry)); g_object_unref (acc_man); - /* TODO Currently only TplLogEntryText exists as subclass of TplLogEntry, in - * future more TplLogEntry will exist and EmpathyMessage should probably + /* TODO Currently only TplLogEntryText exists as subclass of TplEntry, in + * future more TplEntry will exist and EmpathyMessage should probably * be enhanced to support other types of log entries (ie TplLogEntryCall). * * For now we just check (simply) that we are dealing with the only supported type, * then there will be a if/then/else or switch handling all the supported * cases. */ - if (!TPL_IS_LOG_ENTRY_TEXT (logentry)) + if (!TPL_IS_ENTRY_TEXT (logentry)) return NULL; - body = g_strdup (tpl_log_entry_text_get_message ( - TPL_LOG_ENTRY_TEXT (logentry))); - receiver = tpl_log_entry_get_receiver (logentry); - sender = tpl_log_entry_get_sender (logentry); + body = g_strdup (tpl_entry_text_get_message ( + TPL_ENTRY_TEXT (logentry))); + receiver = tpl_entry_get_receiver (logentry); + sender = tpl_entry_get_sender (logentry); retval = empathy_message_new (body); if (receiver != NULL) @@ -314,9 +314,9 @@ empathy_message_from_tpl_log_entry (TplLogEntry *logentry) empathy_contact_from_tpl_contact (account, sender)); empathy_message_set_timestamp (retval, - tpl_log_entry_get_timestamp (logentry)); + tpl_entry_get_timestamp (logentry)); empathy_message_set_id (retval, - tpl_log_entry_get_pending_msg_id (logentry)); + tpl_entry_text_get_pending_msg_id (TPL_ENTRY_TEXT (logentry))); empathy_message_set_is_backlog (retval, FALSE); g_free (body); -- cgit v1.2.3