summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@src.gnome.org>2007-09-13 14:18:33 +0000
committerAlexander Larsson <alexl@src.gnome.org>2007-09-13 14:18:33 +0000
commit0f77e82c868dfc207cd5dfa376c6b505c8b58671 (patch)
tree613187060baef532217677b14fef4015779e0c59 /daemon
parentf617c59198eba87498ececda27e30721c516354e (diff)
downloadgvfs-0f77e82c868dfc207cd5dfa376c6b505c8b58671.tar.gz
Switch boolean file attributes to new boolean type
Original git commit by Alexander Larsson <alexl@redhat.com> at 1183715703 +0200 svn path=/trunk/; revision=660
Diffstat (limited to 'daemon')
-rw-r--r--daemon/gvfsbackendsmb.c6
-rw-r--r--daemon/gvfsbackendsmbbrowse.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/daemon/gvfsbackendsmb.c b/daemon/gvfsbackendsmb.c
index 45c7b8ea..0f8dd5e0 100644
--- a/daemon/gvfsbackendsmb.c
+++ b/daemon/gvfsbackendsmb.c
@@ -1123,7 +1123,7 @@ set_info_from_stat (GFileInfo *info, struct stat *statbuf)
/* If file is dos-readonly, libsmbclient doesn't set S_IWUSR, we use this to
trigger ACCESS_WRITE = FALSE: */
if (!(statbuf->st_mode & S_IWUSR))
- g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_ACCESS_WRITE, FALSE);
+ g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_WRITE, FALSE);
g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_ACCESS, statbuf->st_atime);
#if defined (HAVE_STRUCT_STAT_ST_ATIMENSEC)
@@ -1147,10 +1147,10 @@ set_info_from_stat (GFileInfo *info, struct stat *statbuf)
g_file_info_set_flags (info, flags);
if (statbuf->st_mode & S_IXUSR)
- g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_DOS_ARCHIVE, 1);
+ g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_DOS_ARCHIVE, TRUE);
if (statbuf->st_mode & S_IXGRP)
- g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_DOS_SYSTEM, 1);
+ g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_DOS_SYSTEM, TRUE);
}
}
diff --git a/daemon/gvfsbackendsmbbrowse.c b/daemon/gvfsbackendsmbbrowse.c
index 82bfdf75..8fb212fc 100644
--- a/daemon/gvfsbackendsmbbrowse.c
+++ b/daemon/gvfsbackendsmbbrowse.c
@@ -938,13 +938,13 @@ get_file_info_from_entry (GVfsBackendSmbBrowse *backend, BrowseEntry *entry)
g_file_info_set_file_type (info, G_FILE_TYPE_MOUNTABLE);
if (g_mount_tracker_has_mount_spec (mount_tracker, mount_spec))
{
- g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT, 0);
- g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT, 1);
+ g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT, FALSE);
+ g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT, TRUE);
}
else
{
- g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT, 1);
- g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT, 0);
+ g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT, TRUE);
+ g_file_info_set_attribute_boolean(info, G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT, FALSE);
}
g_mount_spec_unref (mount_spec);
}