When refreshing an existing unix folder, turn off its is_finished_loading state

2008-02-29  Federico Mena Quintero  <federico@novell.com>

	* 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 <federico@gnu.org>

svn path=/trunk/; revision=19677
This commit is contained in:
Federico Mena Quintero
2008-03-01 02:32:09 +00:00
committed by Federico Mena Quintero
parent 4ceeea8539
commit 9b440c1656
2 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,11 @@
2008-02-29 Federico Mena Quintero <federico@novell.com>
* 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 <bratsche@gnome.org>
* docs/tutorial/gtk-tut.sgml: Fix tutorial documentation to

View File

@@ -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;
}