[empathy] accounts_dialog_get_account_iter: use the COL_ACCOUNT directly
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] accounts_dialog_get_account_iter: use the COL_ACCOUNT directly
- Date: Tue, 24 Jan 2012 12:25:18 +0000 (UTC)
commit ae60dd208860c732141e5e5ccb89c7aba18ae28c
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Jan 24 12:01:52 2012 +0100
accounts_dialog_get_account_iter: use the COL_ACCOUNT directly
There is no point using the EmpathyAccountSettings.
https://bugzilla.gnome.org/show_bug.cgi?id=668372
src/empathy-accounts-dialog.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index c79ac40..29a61ff 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]