summaryrefslogtreecommitdiff
path: root/src/nautilus-file.c
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2022-08-04 17:54:44 +0100
committerAntónio Fernandes <antoniof@gnome.org>2022-08-05 20:14:07 +0000
commitc8749e26de05d3889a883c32abcf1476721e43b2 (patch)
tree022573d88ce39b974ee4f1f811c139d6e92a2f37 /src/nautilus-file.c
parent5676672d3b537eecc904544500a041fb0878247d (diff)
downloadnautilus-c8749e26de05d3889a883c32abcf1476721e43b2.tar.gz
properties-window: Show current permissions in main page
This is immediately useful information. Deemphasize the action aspect: most people have no need for setting custom permissions.
Diffstat (limited to 'src/nautilus-file.c')
-rw-r--r--src/nautilus-file.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/nautilus-file.c b/src/nautilus-file.c
index 068b219c0..cbab57a8e 100644
--- a/src/nautilus-file.c
+++ b/src/nautilus-file.c
@@ -6258,6 +6258,21 @@ nautilus_file_can_get_owner (NautilusFile *file)
}
/**
+ * nautilus_file_get_uid:
+ *
+ * Get the user id of the file's owner.
+ *
+ * @file: The file in question.
+ *
+ * Return value: (transfer none): the user id.
+ */
+const uid_t
+nautilus_file_get_uid (NautilusFile *file)
+{
+ return file->details->uid;
+}
+
+/**
* nautilus_file_get_owner_name:
*
* Get the user name of the file's owner. If the owner has no
@@ -6449,6 +6464,21 @@ nautilus_file_can_get_group (NautilusFile *file)
}
/**
+ * nautilus_file_get_gid:
+ *
+ * Get the group id of the file's group.
+ *
+ * @file: The file in question.
+ *
+ * Return value: (transfer none): the group id.
+ */
+const gid_t
+nautilus_file_get_gid (NautilusFile *file)
+{
+ return file->details->gid;
+}
+
+/**
* nautilus_file_get_group_name:
*
* Get the name of the file's group. If the group has no