[PATCH] Don't treat "~" as hidden file



From bug 170607 [1]:

'A directory with name "~" does not appear in nautilus (on the desktop),
even if you enable show hidden files, and reload the view.'

Proposed patch attached.

[1] http://bugzilla.gnome.org/show_bug.cgi?id=170607

-- 
Christian Neumair <chris gnome-de org>
Index: libnautilus-private/nautilus-file-utilities.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-file-utilities.c,v
retrieving revision 1.126
diff -u -p -r1.126 nautilus-file-utilities.c
--- libnautilus-private/nautilus-file-utilities.c	23 Jun 2005 08:27:27 -0000	1.126
+++ libnautilus-private/nautilus-file-utilities.c	10 Jul 2005 20:05:56 -0000
@@ -97,7 +97,8 @@ nautilus_file_name_matches_backup_patter
 {
 	g_return_val_if_fail (name_or_relative_uri != NULL, FALSE);
 
-	return eel_str_has_suffix (name_or_relative_uri, "~");
+	return g_str_has_suffix (name_or_relative_uri, "~") &&
+	       !g_str_equal (name_or_relative_uri, "~");
 }
 
 /**

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]