From b2fe9f70d339db90565e78a3182179934b4b5794 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Thu, 13 Mar 2008 00:37:05 +0000 Subject: [PATCH] Debug printfs for populating the completion store Signed-off-by: Federico Mena Quintero svn path=/trunk/; revision=19824 --- gtk/gtkfilechooserentry.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c index 7e86838082..f016c376ae 100644 --- a/gtk/gtkfilechooserentry.c +++ b/gtk/gtkfilechooserentry.c @@ -747,8 +747,13 @@ populate_completion_store (GtkFileChooserEntry *chooser_entry) 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 @@ populate_completion_store (GtkFileChooserEntry *chooser_entry) PATH_COLUMN, path, -1); + printf ("Completion store += \"%s\"\n", display_name); + gtk_file_info_free (info); g_free (display_name); }