gvfs r1653 - in trunk: . daemon
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r1653 - in trunk: . daemon
- Date: Fri, 14 Mar 2008 09:58:40 +0000 (GMT)
Author: alexl
Date: Fri Mar 14 09:58:40 2008
New Revision: 1653
URL: http://svn.gnome.org/viewvc/gvfs?rev=1653&view=rev
Log:
2008-03-14 Alexander Larsson <alexl redhat com>
* daemon/gvfsbackendsmb.c:
(set_info_from_stat):
Mark files with an initial dot to be hidden.
This handles unix smb shares, and should not affect
windows shares much, since they generally use dot
for extensions so its not used otherwise in filenames.
Modified:
trunk/ChangeLog
trunk/daemon/gvfsbackendsmb.c
Modified: trunk/daemon/gvfsbackendsmb.c
==============================================================================
--- trunk/daemon/gvfsbackendsmb.c (original)
+++ trunk/daemon/gvfsbackendsmb.c Fri Mar 14 09:58:40 2008
@@ -1212,9 +1212,14 @@
char *content_type;
char *display_name;
- if (basename)
- g_file_info_set_name (info, basename);
+ if (basename)
+ {
+ g_file_info_set_name (info, basename);
+ if (*basename == '.')
+ g_file_info_set_is_hidden (info, TRUE);
+ }
+
if (basename != NULL &&
g_file_attribute_matcher_matches (matcher,
G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]