Treat backup files the same way as hidden files, to be closer to what

2005-06-11  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilesystemunix.c (create_file_info): Treat backup
	files the same way as hidden files, to be closer to what
	Nautilus does.  (#136196, Sean Middleditch)
This commit is contained in:
Matthias Clasen 2005-06-11 04:38:43 +00:00 committed by Matthias Clasen
parent fb023e8c09
commit 9d274e0e56
4 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-06-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesystemunix.c (create_file_info): Treat backup
files the same way as hidden files, to be closer to what
Nautilus does. (#136196, Sean Middleditch)
2005-06-10 Matthias Clasen <mclasen@redhat.com> 2005-06-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):

View File

@ -1,3 +1,9 @@
2005-06-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesystemunix.c (create_file_info): Treat backup
files the same way as hidden files, to be closer to what
Nautilus does. (#136196, Sean Middleditch)
2005-06-10 Matthias Clasen <mclasen@redhat.com> 2005-06-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):

View File

@ -1,3 +1,9 @@
2005-06-11 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesystemunix.c (create_file_info): Treat backup
files the same way as hidden files, to be closer to what
Nautilus does. (#136196, Sean Middleditch)
2005-06-10 Matthias Clasen <mclasen@redhat.com> 2005-06-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label):

View File

@ -1936,7 +1936,10 @@ create_file_info (const char *filename,
} }
if (types & GTK_FILE_INFO_IS_HIDDEN) if (types & GTK_FILE_INFO_IS_HIDDEN)
gtk_file_info_set_is_hidden (info, basename[0] == '.'); {
if (basename[0] == '.' || basename[strlen (basename) - 1] == '~')
gtk_file_info_set_is_hidden (info, TRUE);
}
if (types & GTK_FILE_INFO_IS_FOLDER) if (types & GTK_FILE_INFO_IS_FOLDER)
gtk_file_info_set_is_folder (info, S_ISDIR (statbuf->st_mode)); gtk_file_info_set_is_folder (info, S_ISDIR (statbuf->st_mode));