[gnome-builder] templates: Use style class instead of attributes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] templates: Use style class instead of attributes
- Date: Sat, 17 Sep 2022 18:39:28 +0000 (UTC)
commit 34ed879ba7568827a8dd7d8660c7e7f31c405ead
Author: Sonny Piers <sonny fastmail net>
Date: Sat Sep 17 20:20:30 2022 +0200
templates: Use style class instead of attributes
src/plugins/meson-templates/resources/src/window-gtk4.ui | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/src/plugins/meson-templates/resources/src/window-gtk4.ui
b/src/plugins/meson-templates/resources/src/window-gtk4.ui
index 2163ba420..78ee97dc9 100644
--- a/src/plugins/meson-templates/resources/src/window-gtk4.ui
+++ b/src/plugins/meson-templates/resources/src/window-gtk4.ui
@@ -25,10 +25,9 @@
<object class="GtkLabel" id="label">
<property name="label">Hello, World!</property>
<property name="vexpand">true</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- <attribute name="scale" value="2"/>
- </attributes>
+ <style>
+ <class name="title-1"/>
+ </style>
</object>
</child>
</object>
@@ -47,10 +46,9 @@
<child>
<object class="GtkLabel" id="label">
<property name="label">Hello, World!</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- <attribute name="scale" value="2"/>
- </attributes>
+ <style>
+ <class name="title-1"/>
+ </style>
</object>
</child>
{{end}}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]