[gnome-builder/wip/gtk4-port] plugins/meson-templates: add window.ui for rust/python



commit f8f4828854b9ef32caede1b37e006b6b862dc07b
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jun 9 09:51:18 2022 -0700

    plugins/meson-templates: add window.ui for rust/python
    
    They all need to ensure they have the ui file copied, and it needs to be
    set for each language specifically.

 src/plugins/meson-templates/gbp-meson-template-provider.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/plugins/meson-templates/gbp-meson-template-provider.c 
b/src/plugins/meson-templates/gbp-meson-template-provider.c
index b348a13c0..81f8a7c4c 100644
--- a/src/plugins/meson-templates/gbp-meson-template-provider.c
+++ b/src/plugins/meson-templates/gbp-meson-template-provider.c
@@ -90,6 +90,7 @@ static GbpMesonTemplateExpansion gtk4_expansions[] = {
   { "src/main-gtk4.py", "src/main.py", IDE_STRV_INIT ("Python") },
   { "src/meson-py-gtk4.build", "src/meson.build", IDE_STRV_INIT ("Python") },
   { "src/window-gtk4.py", "src/window.py", IDE_STRV_INIT ("Python") },
+  { "src/window-gtk4.ui", "src/window.ui", IDE_STRV_INIT ("Python") },
 
   /* Rust */
   { "build-aux/cargo.sh", "build-aux/cargo.sh", IDE_STRV_INIT ("Rust") },
@@ -101,6 +102,7 @@ static GbpMesonTemplateExpansion gtk4_expansions[] = {
   { "src/main-gtk4.rs", "src/main.rs", IDE_STRV_INIT ("Rust") },
   { "src/meson-rs-gtk4.build", "src/meson.build", IDE_STRV_INIT ("Rust") },
   { "src/window-gtk4.rs", "src/window.rs", IDE_STRV_INIT ("Rust") },
+  { "src/window-gtk4.ui", "src/window.ui", IDE_STRV_INIT ("Rust") },
 
   /* Vala */
   { "src/application-gtk4.vala", "src/application.vala", IDE_STRV_INIT ("Vala") },


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