diff options
author | Federico Mena Quintero <federico@novell.com> | 2010-08-10 11:36:03 -0500 |
---|---|---|
committer | Federico Mena Quintero <federico@novell.com> | 2010-08-10 11:36:03 -0500 |
commit | 3a1ba3bd1ed261c8ea964f1dfcdfd29acbc477f8 (patch) | |
tree | aefeb8dabd716311dd23110654aa0f741347d419 /gtk/gtkfilechooserprivate.h | |
parent | 316b9da87322068533d50f52abadd6c0758fd187 (diff) | |
download | gtk+-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/gtkfilechooserprivate.h')
-rw-r--r-- | gtk/gtkfilechooserprivate.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkfilechooserprivate.h b/gtk/gtkfilechooserprivate.h index 9f02b42e67..a3ccaae89c 100644 --- a/gtk/gtkfilechooserprivate.h +++ b/gtk/gtkfilechooserprivate.h @@ -138,8 +138,7 @@ typedef enum { typedef enum { RELOAD_EMPTY, /* No folder has been set */ - RELOAD_HAS_FOLDER, /* We have a folder, although it may not be completely loaded yet; no need to reload */ - RELOAD_WAS_UNMAPPED /* We had a folder but got unmapped; reload is needed */ + RELOAD_HAS_FOLDER /* We have a folder, although it may not be completely loaded yet; no need to reload */ } ReloadState; typedef enum { |