[gnome-builder/wip/gtk4-port] plugins/meson-templates: fix template types/alignments



commit ca8717bbdcc8553b247842d5e896dc375d9ca901
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jun 7 17:02:56 2022 -0700

    plugins/meson-templates: fix template types/alignments
    
    app id should be const, and the alignment was off.

 src/plugins/meson-templates/resources/src/application.c | 2 +-
 src/plugins/meson-templates/resources/src/application.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/meson-templates/resources/src/application.c 
b/src/plugins/meson-templates/resources/src/application.c
index 025fda446..536d1e6d7 100644
--- a/src/plugins/meson-templates/resources/src/application.c
+++ b/src/plugins/meson-templates/resources/src/application.c
@@ -11,7 +11,7 @@ struct _{{PreFix}}Application
 G_DEFINE_TYPE ({{PreFix}}Application, {{prefix_}}_application, {{if 
is_adwaita}}ADW_TYPE_APPLICATION{{else}}GTK_TYPE_APPLICATION{{end}})
 
 {{PreFix}}Application *
-{{prefix_}}_application_new (gchar *application_id,
+{{prefix_}}_application_new (const char        *application_id,
 {{spaces}}                  GApplicationFlags  flags)
 {
   return g_object_new ({{PREFIX}}_TYPE_APPLICATION,
diff --git a/src/plugins/meson-templates/resources/src/application.h 
b/src/plugins/meson-templates/resources/src/application.h
index b63af79ae..6b89d98a4 100644
--- a/src/plugins/meson-templates/resources/src/application.h
+++ b/src/plugins/meson-templates/resources/src/application.h
@@ -14,7 +14,7 @@ G_BEGIN_DECLS
 
 G_DECLARE_FINAL_TYPE ({{PreFix}}Application, {{prefix_}}_application, {{PREFIX}}, APPLICATION, {{if 
is_adwaita}}AdwApplication{{else}}GtkApplication{{end}})
 
-{{PreFix}}Application *{{prefix_}}_application_new (gchar *application_id,
+{{PreFix}}Application *{{prefix_}}_application_new (const char        *application_id,
 {{Spaces}}{{spaces}}                               GApplicationFlags  flags);
 
 G_END_DECLS


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