]> Pileus Git - ~andy/gtk/commitdiff
Don't hide dotfiles, no such convention on Win32. Just hide files with the
authorTor Lillqvist <tml@novell.com>
Sat, 12 Nov 2005 01:12:08 +0000 (01:12 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Sat, 12 Nov 2005 01:12:08 +0000 (01:12 +0000)
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)

ChangeLog
ChangeLog.pre-2-10
gtk/gtkfilesystemwin32.c

index 34f7f4d15c3e9befd666dd694f5323f4c1855173..109808224412281083b2c3dcf8cc076568c6d9b4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 34f7f4d15c3e9befd666dd694f5323f4c1855173..109808224412281083b2c3dcf8cc076568c6d9b4 100644 (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
index 523159491d14cadd29ad7dfdbecb66c5161f1d52..a8d5cc27f3c02753d7caef6b624aa02c013a65b7 100644 (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);
        }