diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-09-19 18:18:44 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-09-19 18:18:44 +0800 |
commit | 6670167794afb834c87fa7bae7286567b7a84cb3 (patch) | |
tree | eabbae5536c4d90a12579ec145582332722c7d40 /src | |
parent | e832dfa825bd284600ffa28d2a9180d96c7024a5 (diff) | |
download | gsoc2013-empathy-6670167794afb834c87fa7bae7286567b7a84cb3.tar gsoc2013-empathy-6670167794afb834c87fa7bae7286567b7a84cb3.tar.gz gsoc2013-empathy-6670167794afb834c87fa7bae7286567b7a84cb3.tar.bz2 gsoc2013-empathy-6670167794afb834c87fa7bae7286567b7a84cb3.tar.lz gsoc2013-empathy-6670167794afb834c87fa7bae7286567b7a84cb3.tar.xz gsoc2013-empathy-6670167794afb834c87fa7bae7286567b7a84cb3.tar.zst gsoc2013-empathy-6670167794afb834c87fa7bae7286567b7a84cb3.zip |
Use tp_proxy_prepare_async instead of tp_account_manager_prepare_async
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-account-assistant.c | 4 | ||||
-rw-r--r-- | src/empathy-accounts-dialog.c | 4 | ||||
-rw-r--r-- | src/empathy-accounts.c | 4 | ||||
-rw-r--r-- | src/empathy-import-widget.c | 4 | ||||
-rw-r--r-- | src/empathy-main-window.c | 4 | ||||
-rw-r--r-- | src/empathy-migrate-butterfly-logs.c | 4 | ||||
-rw-r--r-- | src/empathy-status-icon.c | 4 | ||||
-rw-r--r-- | src/empathy.c | 10 |
8 files changed, 19 insertions, 19 deletions
diff --git a/src/empathy-account-assistant.c b/src/empathy-account-assistant.c index 1b39000cd..efd6dc184 100644 --- a/src/empathy-account-assistant.c +++ b/src/empathy-account-assistant.c @@ -1161,7 +1161,7 @@ account_mgr_prepare_cb (GObject *source_object, TpAccountManager *manager = TP_ACCOUNT_MANAGER (source_object); GError *error = NULL; - if (!tp_account_manager_prepare_finish (manager, result, &error)) + if (!tp_proxy_prepare_finish (manager, result, &error)) { DEBUG ("Failed to prepare account manager: %s", error->message); g_error_free (error); @@ -1277,7 +1277,7 @@ do_constructed (GObject *object) priv->salut_page = page; priv->display_salut_page = TRUE; - tp_account_manager_prepare_async (priv->account_mgr, NULL, + tp_proxy_prepare_async (priv->account_mgr, NULL, account_mgr_prepare_cb, self); gtk_window_set_resizable (GTK_WINDOW (self), FALSE); diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index 0eeec826c..a48bbc272 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -2118,7 +2118,7 @@ accounts_dialog_manager_ready_cb (GObject *source_object, TpAccountManager *manager = TP_ACCOUNT_MANAGER (source_object); GError *error = NULL; - if (!tp_account_manager_prepare_finish (manager, result, &error)) + if (!tp_proxy_prepare_finish (manager, result, &error)) { DEBUG ("Failed to prepare account manager: %s", error->message); g_error_free (error); @@ -2444,7 +2444,7 @@ do_constructed (GObject *object) /* Set up signalling */ priv->account_manager = tp_account_manager_dup (); - tp_account_manager_prepare_async (priv->account_manager, NULL, + tp_proxy_prepare_async (priv->account_manager, NULL, accounts_dialog_manager_ready_cb, dialog); priv->connectivity = empathy_connectivity_dup_singleton (); diff --git a/src/empathy-accounts.c b/src/empathy-accounts.c index 78398c3ee..8c9ab6812 100644 --- a/src/empathy-accounts.c +++ b/src/empathy-accounts.c @@ -95,7 +95,7 @@ account_manager_ready_for_accounts_cb (GObject *source_object, TpAccountManager *manager = TP_ACCOUNT_MANAGER (source_object); GError *error = NULL; - if (!tp_account_manager_prepare_finish (manager, result, &error)) + if (!tp_proxy_prepare_finish (manager, result, &error)) { DEBUG ("Failed to prepare account manager: %s", error->message); g_clear_error (&error); @@ -248,7 +248,7 @@ main (int argc, char *argv[]) account_manager = tp_account_manager_dup (); - tp_account_manager_prepare_async (account_manager, NULL, + tp_proxy_prepare_async (account_manager, NULL, account_manager_ready_for_accounts_cb, NULL); g_signal_connect (app, "command-line", G_CALLBACK (app_command_line_cb), diff --git a/src/empathy-import-widget.c b/src/empathy-import-widget.c index fc1e2f532..9a8917ffc 100644 --- a/src/empathy-import-widget.c +++ b/src/empathy-import-widget.c @@ -103,7 +103,7 @@ account_manager_prepared_cb (GObject *source_object, EmpathyImportWidgetPriv *priv = GET_PRIV (self); GError *error = NULL; - if (!tp_account_manager_prepare_finish (manager, result, &error)) + if (!tp_proxy_prepare_finish (manager, result, &error)) { DEBUG ("Failed to prepare account manager: %s", error->message); g_error_free (error); @@ -156,7 +156,7 @@ import_widget_add_accounts_to_model (EmpathyImportWidget *self) manager = tp_account_manager_dup (); - tp_account_manager_prepare_async (manager, NULL, + tp_proxy_prepare_async (manager, NULL, account_manager_prepared_cb, self); g_object_unref (manager); diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c index 679f000e0..ad771b0d9 100644 --- a/src/empathy-main-window.c +++ b/src/empathy-main-window.c @@ -2010,7 +2010,7 @@ account_manager_prepared_cb (GObject *source_object, EmpathyMainWindowPriv *priv = GET_PRIV (window); GError *error = NULL; - if (!tp_account_manager_prepare_finish (manager, result, &error)) { + if (!tp_proxy_prepare_finish (manager, result, &error)) { DEBUG ("Failed to prepare account manager: %s", error->message); g_error_free (error); return; @@ -2208,7 +2208,7 @@ empathy_main_window_init (EmpathyMainWindow *window) priv->account_manager = tp_account_manager_dup (); - tp_account_manager_prepare_async (priv->account_manager, NULL, + tp_proxy_prepare_async (priv->account_manager, NULL, account_manager_prepared_cb, window); priv->errors = g_hash_table_new_full (g_direct_hash, diff --git a/src/empathy-migrate-butterfly-logs.c b/src/empathy-migrate-butterfly-logs.c index 4a8bf973c..c673a2f31 100644 --- a/src/empathy-migrate-butterfly-logs.c +++ b/src/empathy-migrate-butterfly-logs.c @@ -140,7 +140,7 @@ migration_account_manager_prepared_cb (GObject *source_object, GList *accounts, *l; GSettings *gsettings; - if (!tp_account_manager_prepare_finish (am, result, &error)) + if (!tp_proxy_prepare_finish (am, result, &error)) { DEBUG ("Failed to prepare the account manager: %s", error->message); g_error_free (error); @@ -189,7 +189,7 @@ migrate_logs (gpointer data) account_manager = tp_account_manager_dup (); - tp_account_manager_prepare_async (account_manager, NULL, + tp_proxy_prepare_async (account_manager, NULL, migration_account_manager_prepared_cb, NULL); g_object_unref (account_manager); diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c index 008ea4701..d6f5b2e46 100644 --- a/src/empathy-status-icon.c +++ b/src/empathy-status-icon.c @@ -437,7 +437,7 @@ account_manager_prepared_cb (GObject *source_object, EmpathyStatusIcon *icon = user_data; GError *error = NULL; - if (!tp_account_manager_prepare_finish (account_manager, result, &error)) { + if (!tp_proxy_prepare_finish (account_manager, result, &error)) { DEBUG ("Failed to prepare account manager: %s", error->message); g_error_free (error); return; @@ -465,7 +465,7 @@ empathy_status_icon_init (EmpathyStatusIcon *icon) priv->account_manager = tp_account_manager_dup (); priv->event_manager = empathy_event_manager_dup_singleton (); - tp_account_manager_prepare_async (priv->account_manager, NULL, + tp_proxy_prepare_async (priv->account_manager, NULL, account_manager_prepared_cb, icon); /* make icon listen and respond to MAIN_WINDOW_HIDDEN changes */ diff --git a/src/empathy.c b/src/empathy.c index 9294557ec..32aa25a86 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -382,7 +382,7 @@ empathy_app_command_line (GApplication *app, empathy_window_present (GTK_WINDOW (self->window)); /* Display the accounts dialog if needed */ - tp_account_manager_prepare_async (self->account_manager, NULL, + tp_proxy_prepare_async (self->account_manager, NULL, account_manager_ready_cb, self); return 0; @@ -626,7 +626,7 @@ account_manager_ready_cb (GObject *source_object, GError *error = NULL; TpConnectionPresenceType presence; - if (!tp_account_manager_prepare_finish (manager, result, &error)) + if (!tp_proxy_prepare_finish (manager, result, &error)) { GtkWidget *dialog; @@ -718,7 +718,7 @@ account_manager_chatroom_ready_cb (GObject *source_object, GList *accounts, *l; GError *error = NULL; - if (!tp_account_manager_prepare_finish (account_manager, result, &error)) + if (!tp_proxy_prepare_finish (account_manager, result, &error)) { DEBUG ("Failed to prepare account manager: %s", error->message); g_error_free (error); @@ -748,7 +748,7 @@ chatroom_manager_ready_cb (EmpathyChatroomManager *chatroom_manager, { TpAccountManager *account_manager = user_data; - tp_account_manager_prepare_async (account_manager, NULL, + tp_proxy_prepare_async (account_manager, NULL, account_manager_chatroom_ready_cb, chatroom_manager); } @@ -786,7 +786,7 @@ empathy_app_constructed (GObject *object) /* account management */ self->account_manager = tp_account_manager_dup (); - tp_account_manager_prepare_async (self->account_manager, NULL, + tp_proxy_prepare_async (self->account_manager, NULL, account_manager_ready_cb, self); migrate_config_to_xdg_dir (); |