diff options
author | Milan Bouchet-Valat <nalimilan@club.fr> | 2009-06-11 19:58:51 -0500 |
---|---|---|
committer | Federico Mena Quintero <federico@novell.com> | 2009-06-11 19:58:51 -0500 |
commit | a27e748586a007910aac394d891b40bb5325456e (patch) | |
tree | 2b41efeba5954bd4685676c92234be124606f92d /gtk/gtkfilesystemmodel.c | |
parent | de280cc5c81c959786bbdd4325348ed07644e770 (diff) | |
download | gtk+-a27e748586a007910aac394d891b40bb5325456e.tar.gz |
bgo#355851 - Hide backup files in the file chooser
Backup files are hidden along with dotfiles, just like Nautilus.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Diffstat (limited to 'gtk/gtkfilesystemmodel.c')
-rw-r--r-- | gtk/gtkfilesystemmodel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c index 79eb10c25b..1d0b736d07 100644 --- a/gtk/gtkfilesystemmodel.c +++ b/gtk/gtkfilesystemmodel.c @@ -1336,7 +1336,8 @@ file_model_node_is_visible (GtkFileSystemModel *model, model->show_folders != is_folder) return FALSE; - if (!model->show_hidden && g_file_info_get_is_hidden (info)) + if (!model->show_hidden && + (g_file_info_get_is_hidden (info) || g_file_info_get_is_backup (info))) return FALSE; if (model->filter_func && |