[gnome-builder/wip/gtk4-port: 1404/1774] plugins/meson-templates: fix parent type for AdwApplication




commit 202f6a262ed0c49bab52e90ddf16d643de2cdf7c
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jun 7 17:07:25 2022 -0700

    plugins/meson-templates: fix parent type for AdwApplication

 src/plugins/meson-templates/resources/src/application.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/plugins/meson-templates/resources/src/application.c 
b/src/plugins/meson-templates/resources/src/application.c
index 536d1e6d7..c327dfc8c 100644
--- a/src/plugins/meson-templates/resources/src/application.c
+++ b/src/plugins/meson-templates/resources/src/application.c
@@ -5,7 +5,11 @@
 
 struct _{{PreFix}}Application
 {
+{{if is_adwaita}}
+  AdwApplication parent_instance;
+{{else}}
   GtkApplication parent_instance;
+{{end}}
 };
 
 G_DEFINE_TYPE ({{PreFix}}Application, {{prefix_}}_application, {{if 
is_adwaita}}ADW_TYPE_APPLICATION{{else}}GTK_TYPE_APPLICATION{{end}})


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]