diff options
author | Federico Mena Quintero <federico@gnome.org> | 2011-07-01 14:54:11 -0500 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2011-07-01 19:07:12 -0500 |
commit | 894be790bf498f3d2be877b6294fbd3305759a3d (patch) | |
tree | 5008009846727ff115e8c29063ebbd5f5bc3d99a /gtk/gtkfilechooserdefault.c | |
parent | 6bb34d7dd466d95a8ecc0377221dc7c00e2f13ec (diff) | |
download | gtk+-894be790bf498f3d2be877b6294fbd3305759a3d.tar.gz |
Hide the Create Folder button in recent-files mode when the pathbar is on
The create-folder machinery doesn't handle that case yet; we may enable it later
once we figure out the implications for the GUI.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Diffstat (limited to 'gtk/gtkfilechooserdefault.c')
-rw-r--r-- | gtk/gtkfilechooserdefault.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 213471515a..aab4b04b04 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -4898,7 +4898,9 @@ path_bar_set_mode (GtkFileChooserDefault *impl, PathBarMode mode) if (path_bar_visible) { - if (impl->create_folders && impl->action != GTK_FILE_CHOOSER_ACTION_OPEN) + if (impl->create_folders + && impl->action != GTK_FILE_CHOOSER_ACTION_OPEN + && impl->operation_mode != OPERATION_MODE_RECENT) create_folder_visible = TRUE; } |