gtk+ r19824 - trunk/gtk



Author: federico
Date: Thu Mar 13 00:37:05 2008
New Revision: 19824
URL: http://svn.gnome.org/viewvc/gtk+?rev=19824&view=rev

Log:
Debug printfs for populating the completion store

Signed-off-by: Federico Mena Quintero <federico gnu org>


Modified:
   trunk/gtk/gtkfilechooserentry.c

Modified: trunk/gtk/gtkfilechooserentry.c
==============================================================================
--- trunk/gtk/gtkfilechooserentry.c	(original)
+++ trunk/gtk/gtkfilechooserentry.c	Thu Mar 13 00:37:05 2008
@@ -747,8 +747,13 @@
   GSList *paths;
   GSList *tmp_list;
 
+  printf ("Populating completion store\n");
+
   if (!gtk_file_folder_list_children (chooser_entry->current_folder, &paths, NULL)) /* NULL-GError */
-    return;
+    {
+      printf ("No children in the folder!  Leaving an empty completion store.\n");
+      return;
+    }
 
   discard_completion_store (chooser_entry);
 
@@ -779,6 +784,8 @@
 			      PATH_COLUMN, path,
 			      -1);
 
+	  printf ("Completion store += \"%s\"\n", display_name);
+
 	  gtk_file_info_free (info);
           g_free (display_name);
 	}



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