blob: b95adcb166f5490a0e0c75f48c6831e2e1061cc0 (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
|
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<template class="NetDeviceWifi" parent="GtkStack">
<child>
<object class="GtkBox" id="listbox_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="height-request">140</property>
</object>
</child>
<!-- Wi-Fi Hotspot deails -->
<child>
<object class="GtkListBox" id="hotspot_box">
<property name="visible">True</property>
<property name="selection-mode">none</property>
<child>
<object class="CcListRow" id="hotspot_name_row">
<property name="visible">True</property>
<property name="title" context="Wi-Fi Hotspot" translatable="yes">Network Name</property>
</object>
</child>
<child>
<object class="CcListRow" id="hotspot_security_row">
<property name="visible">True</property>
<property name="title" context="Wi-Fi Hotspot" translatable="yes">Security type</property>
</object>
</child>
<child>
<object class="CcListRow" id="hotspot_password_row">
<property name="visible">True</property>
<property name="title" context="Wi-Fi Hotspot" translatable="yes">Password</property>
</object>
</child>
</object>
</child>
</template>
<!-- Center widget -->
<object class="GtkBox" id="center_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="halign">center</property>
<property name="valign">center</property>
<child>
<object class="GtkLabel" id="title_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Wi-Fi</property>
<style>
<class name="title" />
</style>
</object>
</child>
<child>
<object class="GtkLabel" id="status_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<style>
<class name="subtitle" />
</style>
</object>
</child>
</object>
<!-- Box with the On/Off switch + menu button -->
<object class="GtkBox" id="header_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">6</property>
<property name="halign">end</property>
<child>
<object class="GtkSwitch" id="device_off_switch">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="valign">center</property>
<signal name="notify::active" handler="device_off_switch_changed_cb" object="NetDeviceWifi" swapped="yes"/>
<child internal-child="accessible">
<object class="AtkObject">
<property name="accessible-name" translatable="yes">Turn Wi-Fi off</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkMenuButton" id="header_button">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="popover">header_button_popover</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">view-more-symbolic</property>
</object>
</child>
</object>
</child>
</object>
<!-- Menu Popover -->
<object class="GtkPopoverMenu" id="header_button_popover">
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin">12</property>
<property name="spacing">6</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkModelButton">
<property name="label" translatable="yes">_Connect to Hidden Network…</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="xalign">0.0</property>
<signal name="clicked" handler="connect_hidden_button_clicked_cb" object="NetDeviceWifi" swapped="yes"/>
</object>
</child>
<child>
<object class="GtkModelButton" id="start_hotspot_button">
<property name="label" translatable="yes">_Turn On Wi-Fi Hotspot…</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="xalign">0.0</property>
<signal name="clicked" handler="start_hotspot_button_clicked_cb" object="NetDeviceWifi" swapped="yes"/>
</object>
</child>
<child>
<object class="GtkModelButton">
<property name="label" translatable="yes">_Known Wi-Fi Networks</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="xalign">0.0</property>
<signal name="clicked" handler="history_button_clicked_cb" object="NetDeviceWifi" swapped="yes"/>
</object>
</child>
</object>
</child>
</object>
</interface>
|