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/gtkpathbar.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/gtkpathbar.c')
-rw-r--r-- | gtk/gtkpathbar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c index 621d487870..a9d2da3900 100644 --- a/gtk/gtkpathbar.c +++ b/gtk/gtkpathbar.c @@ -1661,7 +1661,7 @@ gtk_path_bar_get_info_callback (GCancellable *cancellable, } display_name = g_file_info_get_display_name (info); - is_hidden = g_file_info_get_is_hidden (info); + is_hidden = g_file_info_get_is_hidden (info) || g_file_info_get_is_backup (info); gtk_widget_push_composite_child (); button_data = make_directory_button (file_info->path_bar, display_name, @@ -1689,7 +1689,7 @@ gtk_path_bar_get_info_callback (GCancellable *cancellable, file_info->path_bar->get_info_cancellable = _gtk_file_system_get_info (file_info->path_bar->file_system, file_info->file, - "standard::display-name,standard::is-hidden", + "standard::display-name,standard::is-hidden,standard::is-backup", gtk_path_bar_get_info_callback, file_info); } @@ -1727,7 +1727,7 @@ _gtk_path_bar_set_file (GtkPathBar *path_bar, path_bar->get_info_cancellable = _gtk_file_system_get_info (path_bar->file_system, info->file, - "standard::display-name,standard::is-hidden", + "standard::display-name,standard::is-hidden,standard::is-backup", gtk_path_bar_get_info_callback, info); |