summaryrefslogtreecommitdiff
path: root/gtk/tests
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@novell.com>2010-08-10 11:36:03 -0500
committerFederico Mena Quintero <federico@novell.com>2010-08-10 11:36:03 -0500
commit3a1ba3bd1ed261c8ea964f1dfcdfd29acbc477f8 (patch)
treeaefeb8dabd716311dd23110654aa0f741347d419 /gtk/tests
parent316b9da87322068533d50f52abadd6c0758fd187 (diff)
downloadgtk+-3a1ba3bd1ed261c8ea964f1dfcdfd29acbc477f8.tar.gz
bgo#625416 - Don't reload the filechooser's folder during a re-map event
Long ago, before we had file monitoring at the GIO/Glib level, we would reload the current folder each time a file chooser gets (re)mapped. This was basically to let the GIMP recycle the same file chooser for all file/open or file/save operations, instead of creating a new one every time. In that case, we reloaded the folder with each ::map() event so that the file chooser would present an up-to-date view of the folder that was being displayed. Now, the folder should always be up-to-date as we do file monitoring all the time. Signed-off-by: Federico Mena Quintero <federico@novell.com>
Diffstat (limited to 'gtk/tests')
-rw-r--r--gtk/tests/filechooser.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gtk/tests/filechooser.c b/gtk/tests/filechooser.c
index 424436cd35..3d82eefd66 100644
--- a/gtk/tests/filechooser.c
+++ b/gtk/tests/filechooser.c
@@ -758,7 +758,6 @@ test_reload_sequence (gboolean set_folder_before_map)
passed = passed && (impl->current_folder != NULL
&& impl->browse_files_model != NULL
&& (impl->load_state == LOAD_PRELOAD || impl->load_state == LOAD_LOADING || impl->load_state == LOAD_FINISHED)
- && impl->reload_state == RELOAD_WAS_UNMAPPED
&& (impl->load_state == LOAD_PRELOAD ? (impl->load_timeout_id != 0) : TRUE)
&& ((impl->load_state == LOAD_LOADING || impl->load_state == LOAD_FINISHED)
? (impl->load_timeout_id == 0 && impl->sort_model != NULL)