]> git.0d.be Git - empathy.git/commitdiff
Compare GLists to NULL instead of g_list_length(list) == 0. (Jonny Lamb)
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Fri, 17 Oct 2008 12:47:51 +0000 (12:47 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 17 Oct 2008 12:47:51 +0000 (12:47 +0000)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=1631

src/empathy-import-dialog.c

index 35d77e8d581314a3bd9fc289c62fbe3243a35665..9f48b9c00d129f2a5f84adbf169d7c68a77cf466 100644 (file)
@@ -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;