empathy r1631 - trunk/src



Author: xclaesse
Date: Fri Oct 17 12:47:51 2008
New Revision: 1631
URL: http://svn.gnome.org/viewvc/empathy?rev=1631&view=rev

Log:
Compare GLists to NULL instead of g_list_length(list) == 0. (Jonny Lamb)

Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>

Modified:
   trunk/src/empathy-import-dialog.c

Modified: trunk/src/empathy-import-dialog.c
==============================================================================
--- trunk/src/empathy-import-dialog.c	(original)
+++ trunk/src/empathy-import-dialog.c	Fri Oct 17 12:47:51 2008
@@ -544,7 +544,7 @@
 
       /* 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 @@
 
   dialog->accounts = import_dialog_pidgin_load ();
 
-  if (g_list_length (dialog->accounts) == 0)
+  if (!dialog->accounts)
     {
       GtkWidget *message;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]