diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2018-05-16 13:01:12 -0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@igalia.com> | 2018-05-16 13:01:12 -0500 |
commit | 9b32898ceee74647c08b2a0ea9a57cccd6136c2b (patch) | |
tree | 9fae5724a35e1b66eb06d3d1b4fe9efe1746e02f | |
parent | 72732dd1db558eb3d851b8ab63df896857f41350 (diff) | |
download | gnome-control-center-9b32898ceee74647c08b2a0ea9a57cccd6136c2b.tar.gz |
thunderbolt: Fix build
Providing autocleanups for types you don't own is not a good idea, since
it breaks when upstream adds those autocleanups.
-rw-r--r-- | panels/thunderbolt/bolt-enums.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/panels/thunderbolt/bolt-enums.c b/panels/thunderbolt/bolt-enums.c index de77737f8..bb34ba7c9 100644 --- a/panels/thunderbolt/bolt-enums.c +++ b/panels/thunderbolt/bolt-enums.c @@ -25,8 +25,10 @@ #include <gio/gio.h> +#if !GLIB_CHECK_VERSION(2, 57, 0) G_DEFINE_AUTOPTR_CLEANUP_FUNC (GEnumClass, g_type_class_unref); G_DEFINE_AUTOPTR_CLEANUP_FUNC (GFlagsClass, g_type_class_unref); +#endif gboolean bolt_enum_class_validate (GEnumClass *enum_class, |