diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2008-10-17 20:47:51 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-10-17 20:47:51 +0800 |
commit | 9152893abcbbc55fc49e600de5eb63fadae541c1 (patch) | |
tree | f8792fc0905fec6f00ffb0a5aed6e25fbca07f8c | |
parent | 34155dce06da98803049b7bea34c3d4501a479c4 (diff) | |
download | gsoc2013-empathy-9152893abcbbc55fc49e600de5eb63fadae541c1.tar gsoc2013-empathy-9152893abcbbc55fc49e600de5eb63fadae541c1.tar.gz gsoc2013-empathy-9152893abcbbc55fc49e600de5eb63fadae541c1.tar.bz2 gsoc2013-empathy-9152893abcbbc55fc49e600de5eb63fadae541c1.tar.lz gsoc2013-empathy-9152893abcbbc55fc49e600de5eb63fadae541c1.tar.xz gsoc2013-empathy-9152893abcbbc55fc49e600de5eb63fadae541c1.tar.zst gsoc2013-empathy-9152893abcbbc55fc49e600de5eb63fadae541c1.zip |
Compare GLists to NULL instead of g_list_length(list) == 0. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=1631
-rw-r--r-- | src/empathy-import-dialog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/empathy-import-dialog.c b/src/empathy-import-dialog.c index 35d77e8d5..9f48b9c00 100644 --- a/src/empathy-import-dialog.c +++ b/src/empathy-import-dialog.c @@ -544,7 +544,7 @@ import_dialog_add_accounts_to_model (EmpathyImportDialog *dialog) /* Make the checkbox ticked if there is *no* account already with the * relevant details. */ - import = (g_list_length (accounts) == 0); + import = accounts == NULL; mc_accounts_list_free (accounts); g_object_unref (profile); @@ -671,7 +671,7 @@ empathy_import_dialog_show (GtkWindow *parent, dialog->accounts = import_dialog_pidgin_load (); - if (g_list_length (dialog->accounts) == 0) + if (!dialog->accounts) { GtkWidget *message; |