summaryrefslogtreecommitdiff
path: root/schist_gtk4_gui/resources
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2024-12-14 10:47:52 +0000
committerJoe Carstairs <me@joeac.net>2024-12-14 10:47:52 +0000
commit96d68fc72cc74fd0858846b9c0df0424faa46adb (patch)
tree42ba59b51cef93ec29a45866a697225984a734fa /schist_gtk4_gui/resources
parentbe9313986c9a32d134433d47c866b1f25a7847ab (diff)
Moves UI definition to XML
Diffstat (limited to 'schist_gtk4_gui/resources')
-rw-r--r--schist_gtk4_gui/resources/resources.gresource.xml6
-rw-r--r--schist_gtk4_gui/resources/window.ui13
2 files changed, 19 insertions, 0 deletions
diff --git a/schist_gtk4_gui/resources/resources.gresource.xml b/schist_gtk4_gui/resources/resources.gresource.xml
new file mode 100644
index 0000000..a74cfc9
--- /dev/null
+++ b/schist_gtk4_gui/resources/resources.gresource.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+ <gresource prefix="/net/joeac/schist/">
+ <file compressed="true" preprocess="xml-stripblanks">window.ui</file>
+ </gresource>
+</gresources>
diff --git a/schist_gtk4_gui/resources/window.ui b/schist_gtk4_gui/resources/window.ui
new file mode 100644
index 0000000..6fced19
--- /dev/null
+++ b/schist_gtk4_gui/resources/window.ui
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <template class="SchistWindow" parent="GtkApplicationWindow">
+ <property name="title">schist</property>
+ <property name="default-height">560</property>
+ <property name="default-width">1080</property>
+ <child>
+ <object class="GtkLabel">
+ <property name="label">Hello, world!</property>
+ </object>
+ </child>
+ </template>
+</interface>