From e0006ade23a37f6608c4af25fb06c864309ae6e4 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Tue, 5 Sep 2023 08:03:28 +1200 Subject: [PATCH] Fix building on Pango 1.49.4 (flutter/engine#45098) This version added the autoptr macros which we no longer need to define. https://github.com/flutter/flutter/issues/132881 --- .../flutter/shell/platform/linux/fl_accessible_text_field.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/src/flutter/shell/platform/linux/fl_accessible_text_field.cc b/engine/src/flutter/shell/platform/linux/fl_accessible_text_field.cc index 9a6052d477..9dcc7f64fb 100644 --- a/engine/src/flutter/shell/platform/linux/fl_accessible_text_field.cc +++ b/engine/src/flutter/shell/platform/linux/fl_accessible_text_field.cc @@ -7,7 +7,11 @@ #include "flutter/shell/platform/linux/public/flutter_linux/fl_value.h" G_DEFINE_AUTOPTR_CLEANUP_FUNC(PangoContext, g_object_unref) +// PangoLayout g_autoptr macro weren't added until 1.49.4. Add them manually. +// https://gitlab.gnome.org/GNOME/pango/-/commit/0b84e14 +#if !PANGO_VERSION_CHECK(1, 49, 4) G_DEFINE_AUTOPTR_CLEANUP_FUNC(PangoLayout, g_object_unref) +#endif typedef bool (*FlTextBoundaryCallback)(const PangoLogAttr* attr);