blob: 61347708e01d6443fc40913ca90402a3efb8a1ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<menu id="primary_menu">
<section>
<item>
<attribute name="label" translatable="yes">_About Librest Demo</attribute>
<attribute name="action">app.about</attribute>
</item>
</section>
</menu>
<template class="DemoWindow" parent="AdwApplicationWindow">
<property name="title">Librest Demo</property>
<property name="default-width">900</property>
<property name="default-height">600</property>
<style>
<class name="devel"/>
</style>
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkHeaderBar" id="headerbar">
<child type="end">
<object class="GtkMenuButton">
<property name="menu-model">primary_menu</property>
<property name="icon-name">open-menu-symbolic</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox">
<property name="orientation">horizontal</property>
<child>
<object class="AdwTabBar">
<property name="view">tabview</property>
<property name="autohide">false</property>
<property name="end-action-widget">
<object class="GtkButton">
<signal name="clicked" handler="on_add_tab_clicked" object="DemoWindow" swapped="no"/>
<child>
<object class="GtkImage">
<property name="icon-name">list-add-symbolic</property>
</object>
</child>
<style>
<class name="flat"/>
<class name="end-action-widget"/>
</style>
</object>
</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwTabView" id="tabview">
<property name="vexpand">true</property>
</object>
</child>
</object>
</child>
</template>
</interface>
|