use resources instead of direct ui-file loading
This commit is contained in:
parent
7e7c0a3ce5
commit
397f225fa8
5 changed files with 19 additions and 2 deletions
4
data/meson.build
Normal file
4
data/meson.build
Normal file
|
@ -0,0 +1,4 @@
|
|||
yggtk_resources = gnome.compile_resources(
|
||||
'yggtk-resources',
|
||||
'org.yggtk.yggtk.gresource.xml'
|
||||
)
|
6
data/org.yggtk.yggtk.gresource.xml
Normal file
6
data/org.yggtk.yggtk.gresource.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<gresources>
|
||||
<gresource prefix="org/yggtk/yggtk">
|
||||
<file preprocess="xml-stripblanks">ui/main.ui</file>
|
||||
</gresource>
|
||||
</gresources>
|
114
data/ui/main.ui
Normal file
114
data/ui/main.ui
Normal file
|
@ -0,0 +1,114 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.22.1 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.20"/>
|
||||
<object class="GtkApplicationWindow" id="window">
|
||||
<property name="width_request">600</property>
|
||||
<property name="height_request">450</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="title" translatable="yes">Yggtk</property>
|
||||
<property name="resizable">False</property>
|
||||
<property name="window_position">center</property>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkFixed">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<child>
|
||||
<object class="GtkSwitch" id="status">
|
||||
<property name="width_request">100</property>
|
||||
<property name="height_request">35</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="x">250</property>
|
||||
<property name="y">80</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="width_request">100</property>
|
||||
<property name="height_request">80</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">Yggdrasil</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="x">250</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkEntry" id="label_ip">
|
||||
<property name="width_request">200</property>
|
||||
<property name="height_request">35</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="x">200</property>
|
||||
<property name="y">400</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="browse">
|
||||
<property name="label" translatable="yes">Browse</property>
|
||||
<property name="width_request">200</property>
|
||||
<property name="height_request">35</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="x">200</property>
|
||||
<property name="y">355</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="yggdrasil">
|
||||
<property name="label" translatable="yes">Update Yggdrasil</property>
|
||||
<property name="width_request">200</property>
|
||||
<property name="height_request">35</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="x">200</property>
|
||||
<property name="y">280</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="yggtk">
|
||||
<property name="label" translatable="yes">Update Yggtk</property>
|
||||
<property name="width_request">200</property>
|
||||
<property name="height_request">35</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="x">200</property>
|
||||
<property name="y">235</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkCheckButton" id="portable">
|
||||
<property name="label" translatable="yes">Portable</property>
|
||||
<property name="height_request">35</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">False</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="x">255</property>
|
||||
<property name="y">318</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Add table
Add a link
Reference in a new issue