[gnome-online-accounts/wip/rishi/account-remove: 5/6] tplinker: Shuffle some code around
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/wip/rishi/account-remove: 5/6] tplinker: Shuffle some code around
- Date: Thu, 9 Jun 2016 19:21:17 +0000 (UTC)
commit 9143b0c395111b1b85a69b55ce8169dba8310cbb
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Jun 1 19:53:44 2016 +0200
tplinker: Shuffle some code around
This will make the subsequent commit easier to read.
https://bugzilla.gnome.org/show_bug.cgi?id=766733
src/goabackend/goatpaccountlinker.c | 40 +++++++++++++++++-----------------
1 files changed, 20 insertions(+), 20 deletions(-)
---
diff --git a/src/goabackend/goatpaccountlinker.c b/src/goabackend/goatpaccountlinker.c
index dcdf3f7..71255ec 100644
--- a/src/goabackend/goatpaccountlinker.c
+++ b/src/goabackend/goatpaccountlinker.c
@@ -68,6 +68,26 @@ is_telepathy_account (GoaAccount *goa_account)
}
static void
+tp_account_removed_by_us_cb (GObject *object,
+ GAsyncResult *res,
+ gpointer user_data)
+{
+ /* This callback is only used for debugging */
+ TpAccount *tp_account = TP_ACCOUNT (object);
+ GError *error = NULL;
+
+ if (!tp_account_remove_finish (tp_account, res, &error))
+ {
+ g_critical ("Error removing Telepathy account %s: %s (%s, %d)",
+ get_id_from_tp_account (tp_account),
+ error->message,
+ g_quark_to_string (error->domain),
+ error->code);
+ g_error_free (error);
+ }
+}
+
+static void
goa_account_chat_disabled_changed_cb (GoaAccount *goa_account,
GParamSpec *spec,
GoaTpAccountLinker *self)
@@ -365,26 +385,6 @@ goa_account_added_cb (GoaClient *client,
}
static void
-tp_account_removed_by_us_cb (GObject *object,
- GAsyncResult *res,
- gpointer user_data)
-{
- /* This callback is only used for debugging */
- TpAccount *tp_account = TP_ACCOUNT (object);
- GError *error = NULL;
-
- if (!tp_account_remove_finish (tp_account, res, &error))
- {
- g_critical ("Error removing Telepathy account %s: %s (%s, %d)",
- get_id_from_tp_account (tp_account),
- error->message,
- g_quark_to_string (error->domain),
- error->code);
- g_error_free (error);
- }
-}
-
-static void
goa_account_removed_cb (GoaClient *client,
GoaObject *goa_object,
gpointer user_data)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]