summaryrefslogtreecommitdiff
path: root/schist_gtk4_gui/resources
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2024-12-19 09:11:04 +0000
committerJoe Carstairs <me@joeac.net>2024-12-19 09:11:04 +0000
commitb6fc855a131f67cce42d6407540def729af087ec (patch)
treeecc043587f1aba9ad50669c733e02c85029a39a8 /schist_gtk4_gui/resources
parent9e28aff1c045d7b31b6efb526a80b08048a23d99 (diff)
Factors out CategoriesView
Diffstat (limited to 'schist_gtk4_gui/resources')
-rw-r--r--schist_gtk4_gui/resources/resources.gresource.xml3
-rw-r--r--schist_gtk4_gui/resources/ui/categories_view.ui10
-rw-r--r--schist_gtk4_gui/resources/ui/window.ui (renamed from schist_gtk4_gui/resources/window.ui)9
3 files changed, 17 insertions, 5 deletions
diff --git a/schist_gtk4_gui/resources/resources.gresource.xml b/schist_gtk4_gui/resources/resources.gresource.xml
index 30fdd9f..4b1b90d 100644
--- a/schist_gtk4_gui/resources/resources.gresource.xml
+++ b/schist_gtk4_gui/resources/resources.gresource.xml
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/net/joeac/schist/">
- <file compressed="true" preprocess="xml-stripblanks">window.ui</file>
+ <file compressed="true" preprocess="xml-stripblanks">ui/categories_view.ui</file>
+ <file compressed="true" preprocess="xml-stripblanks">ui/window.ui</file>
<file compressed="true">css/styles.css</file>
<file compressed="true">css/window.css</file>
</gresource>
diff --git a/schist_gtk4_gui/resources/ui/categories_view.ui b/schist_gtk4_gui/resources/ui/categories_view.ui
new file mode 100644
index 0000000..197fcb3
--- /dev/null
+++ b/schist_gtk4_gui/resources/ui/categories_view.ui
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <template class="SchistCategoriesView" parent="GtkBox">
+ <child>
+ <object class="GtkLabel">
+ <property name="label">Hello, categories!</property>
+ </object>
+ </child>
+ </template>
+</interface>
diff --git a/schist_gtk4_gui/resources/window.ui b/schist_gtk4_gui/resources/ui/window.ui
index 9d6a10d..2dcf4c8 100644
--- a/schist_gtk4_gui/resources/window.ui
+++ b/schist_gtk4_gui/resources/ui/window.ui
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8" ?>
<interface>
<template class="SchistWindow" parent="GtkApplicationWindow">
<property name="title">schist</property>
@@ -21,9 +21,10 @@
<property name="name">categories</property>
<property name="title">Categories</property>
<property name="child">
- <object class="GtkLabel">
- <property name="label">Hello, categories!</property>
- </object>
+ <object
+ class="SchistCategoriesView"
+ id="categories_view"
+ />
</property>
</object>
</child>