]> Pileus Git - ~andy/gtk/commitdiff
When refreshing an existing unix folder, turn off its is_finished_loading state
authorFederico Mena Quintero <federico@novell.com>
Sat, 1 Mar 2008 02:32:09 +0000 (02:32 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Sat, 1 Mar 2008 02:32:09 +0000 (02:32 +0000)
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

ChangeLog
gtk/gtkfilesystemunix.c

index 51f549df61a9d3e13f559e5192b23a48dca7a2aa..844546d5a6775790a701614aade75ea78f4f115d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index b426afe764573106e8443f006907f424e93f5a91..ad225afde72e415ff8a0be626d9affd20d0d8b7b 100644 (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;
        }