diff options
author | Wu Xiaotian <[email protected]> | 2019-07-17 16:57:19 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-08-26 14:21:14 +0200 |
commit | 94d029d6b3642b237972531bc9ae2c557a66c328 (patch) | |
tree | 0efe538f355e088dccd5a1ac44c3d4547f1d8607 /src/file-manager/fm-directory-view.h | |
parent | ee312085f7dadfa484d8feca01880cf83b84beac (diff) | |
download | caja-94d029d6b3642b237972531bc9ae2c557a66c328.tar.bz2 caja-94d029d6b3642b237972531bc9ae2c557a66c328.tar.xz |
fix build error about autoptr clean
Diffstat (limited to 'src/file-manager/fm-directory-view.h')
-rw-r--r-- | src/file-manager/fm-directory-view.h | 5 |
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); |