[empathy: 36/59] import-mc4-accounts: port to new tp-glib account API



commit 24031b2130a2143f100588d1d62ea2d21326f664
Author: Jonny Lamb <jonnylamb gnome org>
Date:   Sat Oct 24 16:00:34 2009 +0100

    import-mc4-accounts: port to new tp-glib account API
    
    Signed-off-by: Jonny Lamb <jonnylamb gnome org>

 src/empathy-import-mc4-accounts.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/empathy-import-mc4-accounts.c b/src/empathy-import-mc4-accounts.c
index 0a72c49..b4bca6f 100644
--- a/src/empathy-import-mc4-accounts.c
+++ b/src/empathy-import-mc4-accounts.c
@@ -24,11 +24,11 @@
 #include <glib.h>
 #include <glib/gi18n.h>
 #include <gconf/gconf-client.h>
+#include <telepathy-glib/account-manager.h>
 #include <telepathy-glib/util.h>
 #include <telepathy-glib/defs.h>
 #include <dbus/dbus-protocol.h>
 #include <gnome-keyring.h>
-#include <libempathy/empathy-account-manager.h>
 #include <libempathy/empathy-account-settings.h>
 #include <libempathy/empathy-connection-managers.h>
 
@@ -189,12 +189,12 @@ _move_contents (const gchar *old, const gchar *new)
 }
 
 static void
-_move_logs (EmpathyAccount *account, const gchar *account_name)
+_move_logs (TpAccount *account, const gchar *account_name)
 {
   gchar *old_path, *new_path, *escaped;
   const gchar *name;
 
-  name = empathy_account_get_unique_name (account);
+  name = tp_proxy_get_object_path (account);
   if (g_str_has_prefix (name, TP_ACCOUNT_OBJECT_PATH_BASE))
     name += strlen (TP_ACCOUNT_OBJECT_PATH_BASE);
 
@@ -215,7 +215,7 @@ _create_account_cb (GObject *source,
   GAsyncResult *result,
   gpointer user_data)
 {
-  EmpathyAccount *account;
+  TpAccount *account;
   GError *error = NULL;
   Misc *misc = (Misc *) user_data;
 
@@ -233,7 +233,7 @@ _create_account_cb (GObject *source,
 
   _move_logs (account, misc->account_name);
 
-  empathy_account_set_enabled_async (account,
+  tp_account_set_enabled_async (account,
       misc->enable, NULL, NULL);
 
   g_free (misc->account_name);



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