diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-06-10 16:13:09 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-06-18 23:18:03 +0800 |
commit | 09a49d81dafe86a68546613cfeee4e2a118cf198 (patch) | |
tree | 93c958e828ca6047bad28ae95086f6a0a8b7c84c /libempathy/empathy-message.c | |
parent | be2ae7a5b3f10393fa1afcefb67042493cb0eee7 (diff) | |
download | gsoc2013-empathy-09a49d81dafe86a68546613cfeee4e2a118cf198.tar gsoc2013-empathy-09a49d81dafe86a68546613cfeee4e2a118cf198.tar.gz gsoc2013-empathy-09a49d81dafe86a68546613cfeee4e2a118cf198.tar.bz2 gsoc2013-empathy-09a49d81dafe86a68546613cfeee4e2a118cf198.tar.lz gsoc2013-empathy-09a49d81dafe86a68546613cfeee4e2a118cf198.tar.xz gsoc2013-empathy-09a49d81dafe86a68546613cfeee4e2a118cf198.tar.zst gsoc2013-empathy-09a49d81dafe86a68546613cfeee4e2a118cf198.zip |
TplLogEntry(Text) has been renamed to TplEntry(Text)
Diffstat (limited to 'libempathy/empathy-message.c')
-rw-r--r-- | libempathy/empathy-message.c | 28 |
1 files changed, 14 insertions, 14 deletions
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 <telepathy-glib/account-manager.h> #include <telepathy-logger/contact.h> -#include <telepathy-logger/log-entry.h> -#include <telepathy-logger/log-entry-text.h> +#include <telepathy-logger/entry.h> +#include <telepathy-logger/entry-text.h> #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); |