summaryrefslogtreecommitdiff
path: root/gtk/gtkfilesystemmodel.c
diff options
context:
space:
mode:
authorMilan Bouchet-Valat <nalimilan@club.fr>2009-06-11 19:58:51 -0500
committerFederico Mena Quintero <federico@novell.com>2009-06-11 19:58:51 -0500
commita27e748586a007910aac394d891b40bb5325456e (patch)
tree2b41efeba5954bd4685676c92234be124606f92d /gtk/gtkfilesystemmodel.c
parentde280cc5c81c959786bbdd4325348ed07644e770 (diff)
downloadgtk+-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.c3
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 &&