From 9152893abcbbc55fc49e600de5eb63fadae541c1 Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Fri, 17 Oct 2008 12:47:51 +0000 Subject: Compare GLists to NULL instead of g_list_length(list) == 0. (Jonny Lamb) Signed-off-by: Jonny Lamb svn path=/trunk/; revision=1631 --- src/empathy-import-dialog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3