summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Fazakas <alex.fazakas97@yahoo.com>2018-02-20 22:12:25 +0100
committerMarco Trevisan (TreviƱo) <mail@3v1n0.net>2018-07-18 00:57:56 +0200
commitb109d6307534136c61d174a3b6ed55357ce0e0e3 (patch)
tree434277f80fd708707f2cde2ead202c42bc4e83ca
parentd50648504f0e0c9eac9492ff50b1de9aff67d5ac (diff)
downloadnautilus-b109d6307534136c61d174a3b6ed55357ce0e0e3.tar.gz
file: Add autoptr support
This is further used for the deep freeing as part of g_autolist(). Related to https://gitlab.gnome.org/GNOME/nautilus/issues/226
-rw-r--r--src/nautilus-file.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nautilus-file.h b/src/nautilus-file.h
index 3a83bd4de..5b319f9c9 100644
--- a/src/nautilus-file.h
+++ b/src/nautilus-file.h
@@ -149,6 +149,8 @@ NautilusFile * nautilus_file_get_existing_by_uri (const c
NautilusFile * nautilus_file_ref (NautilusFile *file);
void nautilus_file_unref (NautilusFile *file);
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (NautilusFile, nautilus_file_unref)
+
/* Monitor the file. */
void nautilus_file_monitor_add (NautilusFile *file,
gconstpointer client,