[gnome-online-accounts] tplinker: Shuffle some code around



commit d9d5ec45e360cfddbd446ea8f4d20b99ca79098c
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]