diff options
author | Wu Xiaotian <[email protected]> | 2019-07-17 16:57:19 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-20 21:40:42 +0200 |
commit | ca25f1ee2fd8ee565164e0122f9d65a2b5a21ade (patch) | |
tree | ffcf1f213931ee37bae67d992486994f1beda0aa /src/file-manager/fm-directory-view.h | |
parent | 2dea92a649c62555843f9230f6d6392567699b71 (diff) | |
download | caja-ca25f1ee2fd8ee565164e0122f9d65a2b5a21ade.tar.bz2 caja-ca25f1ee2fd8ee565164e0122f9d65a2b5a21ade.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 1f4fb878..c2796ba8 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); |