gvfs r1096 - in trunk: . daemon



Author: alexl
Date: Fri Jan 11 11:27:03 2008
New Revision: 1096
URL: http://svn.gnome.org/viewvc/gvfs?rev=1096&view=rev

Log:
2008-01-11  Alexander Larsson  <alexl redhat com>

        * daemon/gvfsbackendcomputer.c:
	Set can't write info on the root.




Modified:
   trunk/ChangeLog
   trunk/daemon/gvfsbackendcomputer.c

Modified: trunk/daemon/gvfsbackendcomputer.c
==============================================================================
--- trunk/daemon/gvfsbackendcomputer.c	(original)
+++ trunk/daemon/gvfsbackendcomputer.c	Fri Jan 11 11:27:03 2008
@@ -683,6 +683,9 @@
       icon = g_themed_icon_new ("gnome-fs-client");
       g_file_info_set_icon (info, icon);
       g_object_unref (icon);
+      g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE, FALSE);
+      g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE, FALSE);
+      g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH, FALSE);
     }
   else if (file != NULL)
     file_info_from_file (file, info);



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