[empathy] Port EmpathyLogManager to new API



commit 5adc5a62f5fee78c93f361e44c0b32e989826aac
Author: Xavier Claessens <xclaesse gmail com>
Date:   Mon Feb 16 00:26:37 2009 +0100

    Port EmpathyLogManager to new API
---
 libempathy/empathy-log-store-empathy.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/libempathy/empathy-log-store-empathy.c b/libempathy/empathy-log-store-empathy.c
index 37a7667..d431e0d 100644
--- a/libempathy/empathy-log-store-empathy.c
+++ b/libempathy/empathy-log-store-empathy.c
@@ -481,8 +481,12 @@ log_store_empathy_get_messages_for_file (EmpathyLogStore *self,
 
       t = empathy_time_parse (time);
 
-      sender = empathy_contact_new_full (account, sender_id, sender_name);
-      empathy_contact_set_is_user (sender, is_user);
+      sender = g_object_new (EMPATHY_TYPE_CONTACT,
+          "account", account,
+          "id", sender_id,
+          "name", sender_name,
+          "is-user", is_user,
+          NULL);
       if (!EMP_STR_EMPTY (sender_avatar_token))
         empathy_contact_load_avatar_cache (sender,
             sender_avatar_token);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]