accounts_dialog_get_account_iter: use the COL_ACCOUNT directly
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 24 Jan 2012 11:01:52 +0000 (12:01 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 24 Jan 2012 12:24:59 +0000 (13:24 +0100)
There is no point using the EmpathyAccountSettings.

https://bugzilla.gnome.org/show_bug.cgi?id=668372

src/empathy-accounts-dialog.c

index c79ac407808f50f4d687268828e4fa0d41d04e5b..29a61ffdbe3c42b6ff6daff04d0d3ea73497daaf 100644 (file)
@@ -1637,15 +1637,15 @@ accounts_dialog_get_account_iter (EmpathyAccountsDialog *dialog,
        ok;
        ok = gtk_tree_model_iter_next (model, iter))
     {
-      EmpathyAccountSettings *settings;
+      TpAccount *this_account;
       gboolean   equal;
 
       gtk_tree_model_get (model, iter,
-          COL_ACCOUNT_SETTINGS, &settings,
+          COL_ACCOUNT, &this_account,
           -1);
 
-      equal = empathy_account_settings_has_account (settings, account);
-      g_object_unref (settings);
+      equal = (this_account == account);
+      g_object_unref (this_account);
 
       if (equal)
         return TRUE;