[gnome-builder] meson-templates: remove FINAL_TYPE usage



commit 54e74c9b085b3677a455bfb13724bf1e59c609d8
Author: Christian Hergert <chergert redhat com>
Date:   Mon Aug 30 15:43:48 2021 -0700

    meson-templates: remove FINAL_TYPE usage
    
    We don't want to move to this yet, as the SDKs aren't even updated to
    use them, so it can be confusing when you see the failures.

 src/plugins/meson-templates/resources/src/application.c | 2 +-
 src/plugins/meson-templates/resources/src/application.h | 2 +-
 src/plugins/meson-templates/resources/src/window.c      | 2 +-
 src/plugins/meson-templates/resources/src/window.h      | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/meson-templates/resources/src/application.c 
b/src/plugins/meson-templates/resources/src/application.c
index 6f20f3fbc..ae844bd22 100644
--- a/src/plugins/meson-templates/resources/src/application.c
+++ b/src/plugins/meson-templates/resources/src/application.c
@@ -8,7 +8,7 @@ struct _{{PreFix}}Application
   GtkApplication parent_instance;
 };
 
-G_DEFINE_FINAL_TYPE ({{PreFix}}Application, {{prefix_}}_application, GTK_TYPE_APPLICATION)
+G_DEFINE_TYPE ({{PreFix}}Application, {{prefix_}}_application, GTK_TYPE_APPLICATION)
 
 {{PreFix}}Application *
 {{prefix_}}_application_new (gchar *application_id,
diff --git a/src/plugins/meson-templates/resources/src/application.h 
b/src/plugins/meson-templates/resources/src/application.h
index d4a9bada0..ef697b644 100644
--- a/src/plugins/meson-templates/resources/src/application.h
+++ b/src/plugins/meson-templates/resources/src/application.h
@@ -8,7 +8,7 @@ G_BEGIN_DECLS
 
 #define {{PREFIX}}_TYPE_APPLICATION ({{prefix_}}_application_get_type())
 
-G_DECLARE_FINAL_TYPE ({{PreFix}}Application, {{prefix_}}_application, {{PREFIX}}, APPLICATION, 
GtkApplication)
+G_DECLARE_TYPE ({{PreFix}}Application, {{prefix_}}_application, {{PREFIX}}, APPLICATION, GtkApplication)
 
 {{PreFix}}Application *{{prefix_}}_application_new (gchar *application_id,
 {{Spaces}}{{spaces}}                               GApplicationFlags  flags);
diff --git a/src/plugins/meson-templates/resources/src/window.c 
b/src/plugins/meson-templates/resources/src/window.c
index 880ae59a0..689d03968 100644
--- a/src/plugins/meson-templates/resources/src/window.c
+++ b/src/plugins/meson-templates/resources/src/window.c
@@ -12,7 +12,7 @@ struct _{{PreFix}}Window
   GtkLabel            *label;
 };
 
-G_DEFINE_FINAL_TYPE ({{PreFix}}Window, {{prefix_}}_window, GTK_TYPE_APPLICATION_WINDOW)
+G_DEFINE_TYPE ({{PreFix}}Window, {{prefix_}}_window, GTK_TYPE_APPLICATION_WINDOW)
 
 static void
 {{prefix_}}_window_class_init ({{PreFix}}WindowClass *klass)
diff --git a/src/plugins/meson-templates/resources/src/window.h 
b/src/plugins/meson-templates/resources/src/window.h
index 3e757b50f..7bda5a87e 100644
--- a/src/plugins/meson-templates/resources/src/window.h
+++ b/src/plugins/meson-templates/resources/src/window.h
@@ -8,6 +8,6 @@ G_BEGIN_DECLS
 
 #define {{PREFIX}}_TYPE_WINDOW ({{prefix_}}_window_get_type())
 
-G_DECLARE_FINAL_TYPE ({{PreFix}}Window, {{prefix_}}_window, {{PREFIX}}, WINDOW, GtkApplicationWindow)
+G_DECLARE_TYPE ({{PreFix}}Window, {{prefix_}}_window, {{PREFIX}}, WINDOW, GtkApplicationWindow)
 
 G_END_DECLS


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