Flutter bbclass refactor
[AGL/meta-agl-devel.git] / meta-agl-flutter / recipes-graphics / flutter-engine / files / 0004-prevent-redefinition-of-glib_autoptr_clear_AtkObject.patch
1 From 1a4f274b071a1486204470392d2427069533f8ca Mon Sep 17 00:00:00 2001
2 From: Joel Winarske <joel.winarske@gmail.com>
3 Date: Thu, 8 Sep 2022 16:15:06 -0700
4 Subject: [PATCH] prevent redefinition of glib_autoptr_clear_AtkObject
5
6 Signed-off-by: Joel Winarske <joel.winarske@gmail.com>
7 ---
8  flutter/shell/platform/linux/fl_accessible_node.h | 7 ++-----
9  1 file changed, 2 insertions(+), 5 deletions(-)
10
11 diff --git a/flutter/shell/platform/linux/fl_accessible_node.h b/flutter/shell/platform/linux/fl_accessible_node.h
12 index ff38ad49c6..190cb982a1 100644
13 --- a/flutter/shell/platform/linux/fl_accessible_node.h
14 +++ b/flutter/shell/platform/linux/fl_accessible_node.h
15 @@ -5,17 +5,14 @@
16  #ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_ACCESSIBLE_NODE_H_
17  #define FLUTTER_SHELL_PLATFORM_LINUX_FL_ACCESSIBLE_NODE_H_
18  
19 -#include <gtk/gtk.h>
20 +#include <gio/gio.h>
21 +#include <atk/atk.h>
22  
23  #include "flutter/shell/platform/embedder/embedder.h"
24  #include "flutter/shell/platform/linux/public/flutter_linux/fl_engine.h"
25  
26  G_BEGIN_DECLS
27  
28 -// ATK doesn't have the g_autoptr macros, so add them manually.
29 -// https://gitlab.gnome.org/GNOME/atk/-/issues/10
30 -G_DEFINE_AUTOPTR_CLEANUP_FUNC(AtkObject, g_object_unref)
31 -
32  #define FL_TYPE_ACCESSIBLE_NODE fl_accessible_node_get_type()
33  G_DECLARE_DERIVABLE_TYPE(FlAccessibleNode,
34                           fl_accessible_node,
35 -- 
36 2.34.3