[gnome-builder] Update src/plugins/meson-templates/resources/src/window-gtk4.py, src/plugins/meson-templates/meson_t



commit 1cec4b10058a1c237abf191496189f5c049a41c5
Author: Antóin Óg Ó Cuinneagáin <anthony cunningham gmail com>
Date:   Mon Mar 21 23:07:37 2022 +0000

    Update src/plugins/meson-templates/resources/src/window-gtk4.py, 
src/plugins/meson-templates/meson_templates.py

 src/plugins/meson-templates/meson_templates.py           | 2 ++
 src/plugins/meson-templates/resources/src/window-gtk4.py | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/meson-templates/meson_templates.py b/src/plugins/meson-templates/meson_templates.py
index 2612c1ed9..68eb88ec0 100644
--- a/src/plugins/meson-templates/meson_templates.py
+++ b/src/plugins/meson-templates/meson_templates.py
@@ -18,6 +18,7 @@
 
 import gi
 import os
+import time
 from os import path
 
 from gi.repository import (
@@ -126,6 +127,7 @@ class MesonTemplate(Ide.TemplateBase, Ide.ProjectTemplate):
         scope.get('name').assign_string(name)
         scope.get('name_').assign_string(name_)
         scope.get('NAME').assign_string(name_.upper())
+        scope.get('year').assign_string(time.strftime('%Y'))
 
         if 'app-id' in params:
             appid = params['app-id'].get_string()
diff --git a/src/plugins/meson-templates/resources/src/window-gtk4.py 
b/src/plugins/meson-templates/resources/src/window-gtk4.py
index 17b378d56..b8065c27e 100644
--- a/src/plugins/meson-templates/resources/src/window-gtk4.py
+++ b/src/plugins/meson-templates/resources/src/window-gtk4.py
@@ -20,7 +20,7 @@ class AboutDialog(Gtk.AboutDialog):
         self.props.program_name = '{{name}}'
         self.props.version = "0.1.0"
         self.props.authors = ['{{author}}']
-        self.props.copyright = '2022 {{author}}'
+        self.props.copyright = '{{year}} {{author}}'
         self.props.logo_icon_name = '{{appid}}'
         self.props.modal = True
         self.set_transient_for(parent)


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