From 9b440c1656116d315d43378e9ccb34dd5d760fd1 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Sat, 1 Mar 2008 02:32:09 +0000 Subject: [PATCH] When refreshing an existing unix folder, turn off its is_finished_loading state 2008-02-29 Federico Mena Quintero * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder): When refreshing an existing folder (i.e. when we are about to reload its file list), turn off the folder's is_finished_loading flag. Otherwise callers which do ::is_finished_loading() followed by ::list_children() will get nothing. Signed-off-by: Federico Mena Quintero svn path=/trunk/; revision=19677 --- ChangeLog | 8 ++++++++ gtk/gtkfilesystemunix.c | 1 + 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 51f549df61..844546d5a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-02-29 Federico Mena Quintero + + * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder): When + refreshing an existing folder (i.e. when we are about to reload + its file list), turn off the folder's is_finished_loading flag. + Otherwise callers which do ::is_finished_loading() followed by + ::list_children() will get nothing. + 2008-02-29 Cody Russell * docs/tutorial/gtk-tut.sgml: Fix tutorial documentation to diff --git a/gtk/gtkfilesystemunix.c b/gtk/gtkfilesystemunix.c index b426afe764..ad225afde7 100644 --- a/gtk/gtkfilesystemunix.c +++ b/gtk/gtkfilesystemunix.c @@ -914,6 +914,7 @@ gtk_file_system_unix_get_folder (GtkFileSystem *file_system, folder_unix->have_mime_type = FALSE; folder_unix->have_stat = FALSE; folder_unix->have_hidden = FALSE; + folder_unix->is_finished_loading = FALSE; set_asof = TRUE; }