Don't hide dotfiles, no such convention on Win32. Just hide files with the

2005-11-12  Tor Lillqvist  <tml@novell.com>

	* gtk/gtkfilesystemwin32.c (filename_get_info): Don't hide
	dotfiles, no such convention on Win32. Just hide files with the
	hidden attribute. (#314627)
This commit is contained in:
Tor Lillqvist 2005-11-12 01:12:08 +00:00 committed by Tor Lillqvist
parent c100ebd2da
commit de28325959
3 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2005-11-12 Tor Lillqvist <tml@novell.com>
* gtk/gtkfilesystemwin32.c (filename_get_info): Don't hide
dotfiles, no such convention on Win32. Just hide files with the
hidden attribute. (#314627)
2005-11-11 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Do not

View File

@ -1,3 +1,9 @@
2005-11-12 Tor Lillqvist <tml@novell.com>
* gtk/gtkfilesystemwin32.c (filename_get_info): Don't hide
dotfiles, no such convention on Win32. Just hide files with the
hidden attribute. (#314627)
2005-11-11 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Do not

View File

@ -1525,9 +1525,7 @@ filename_get_info (const gchar *filename,
if (types & GTK_FILE_INFO_IS_HIDDEN)
{
/* Unix dot convention or the Windows hidden attribute */
gboolean is_hidden = basename[0] == '.' ||
!!(wfad.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN);
gboolean is_hidden = !!(wfad.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN);
gtk_file_info_set_is_hidden (info, is_hidden);
}