summaryrefslogtreecommitdiff
path: root/src/file-manager
diff options
context:
space:
mode:
Diffstat (limited to 'src/file-manager')
-rw-r--r--src/file-manager/fm-directory-view.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/file-manager/fm-directory-view.h b/src/file-manager/fm-directory-view.h
index bf10c4da..91e7840c 100644
--- a/src/file-manager/fm-directory-view.h
+++ b/src/file-manager/fm-directory-view.h
@@ -30,6 +30,7 @@
#include <gtk/gtk.h>
#include <gio/gio.h>
+#include <glib.h>
#include <eel/eel-background.h>
@@ -342,6 +343,10 @@ struct FMDirectoryViewClass
/* GObject support */
GType fm_directory_view_get_type (void);
+#if GLIB_CHECK_VERSION(2, 44, 0)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (FMDirectoryView, g_object_unref);
+#endif
+
/* Functions callable from the user interface and elsewhere. */
CajaWindowInfo *fm_directory_view_get_caja_window (FMDirectoryView *view);
CajaWindowSlotInfo *fm_directory_view_get_caja_window_slot (FMDirectoryView *view);