window.ui 12.8 KB
Newer Older
Todd Weaver's avatar
Todd Weaver committed
1
2
3
4
5
6
7
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.38.2 -->
<interface>
  <requires lib="gtk+" version="3.20"/>
  <requires lib="libhandy" version="1.2"/>
  <template class="StreamWindow" parent="HdyApplicationWindow">
    <property name="can-focus">False</property>
8
    <property name="hexpand">False</property>
Todd Weaver's avatar
Todd Weaver committed
9
    <property name="vexpand">True</property>
10
11
    <property name="default-width">882</property>
    <property name="default-height">652</property>
12
    <property name="icon-name">sm.puri.Stream</property>
13
    <signal name="key-press-event" handler="keypress_listener" swapped="no"/>
Todd Weaver's avatar
Todd Weaver committed
14
15
16
17
18
19
    <child>
      <object class="GtkBox">
        <property name="visible">True</property>
        <property name="can-focus">False</property>
        <property name="orientation">vertical</property>
        <child>
20
          <object class="HdyHeaderBar" id="header_bar">
Todd Weaver's avatar
Todd Weaver committed
21
22
23
24
25
            <property name="visible">True</property>
            <property name="can-focus">False</property>
            <property name="title" translatable="yes">Stream</property>
            <property name="show-close-button">True</property>
            <child>
26
              <object class="GtkToggleButton" id="search_bar_toggle">
Todd Weaver's avatar
Todd Weaver committed
27
                <property name="visible">True</property>
28
                <property name="can-focus">True</property>
Todd Weaver's avatar
Todd Weaver committed
29
30
31
                <property name="tooltip-text" translatable="yes">Search</property>
                <property name="valign">center</property>
                <property name="active">True</property>
32
                <signal name="clicked" handler="search_toggle" swapped="no"/>
Todd Weaver's avatar
Todd Weaver committed
33
34
35
36
37
38
39
40
41
42
43
44
45
46
                <child>
                  <object class="GtkImage">
                    <property name="visible">True</property>
                    <property name="can-focus">False</property>
                    <property name="icon-name">edit-find-symbolic</property>
                    <property name="icon_size">1</property>
                  </object>
                </child>
                <style>
                  <class name="image-button"/>
                </style>
              </object>
            </child>
            <child>
47
              <object class="GtkBox" id="navigation_buttons">
Todd Weaver's avatar
Todd Weaver committed
48
                <property name="visible">True</property>
49
50
                <property name="can-focus">False</property>
                <property name="halign">center</property>
51
                <property name="valign">center</property>
52
                <property name="orientation">horizontal</property>
53
                <child>
54
                  <object class="GtkButton" id="navigation_previous">
55
                    <property name="visible">True</property>
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
                    <property name="can-focus">True</property>
                    <property name="tooltip-text" translatable="yes">Previous</property>
                    <property name="valign">center</property>
                    <property name="sensitive">False</property>
                    <signal name="clicked" handler="show_previous_results" swapped="no"/>
                    <child>
                      <object class="GtkImage">
                        <property name="visible">True</property>
                        <property name="can-focus">False</property>
                        <property name="icon-name">go-previous-symbolic</property>
                        <property name="icon_size">1</property>
                      </object>
                    </child>
                    <style>
                      <class name="navigation-previous" />
                    </style>
72
73
74
                  </object>
                </child>
                <child>
75
                  <object class="GtkImage" id="navigation_current">
76
77
                    <property name="visible">True</property>
                    <property name="can-focus">False</property>
78
                    <property name="icon-name">content-loading-symbolic</property>
79
                    <property name="icon_size">1</property>
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
                    <style>
                      <class name="navigation-current" />
                    </style>
                  </object>
                </child>
                <child>
                  <object class="GtkButton" id="navigation_next">
                    <property name="visible">True</property>
                    <property name="can-focus">True</property>
                    <property name="tooltip-text" translatable="yes">Next</property>
                    <property name="valign">center</property>
                    <property name="sensitive">False</property>
                    <signal name="clicked" handler="show_next_results" swapped="no"/>
                    <child>
                      <object class="GtkImage">
                        <property name="visible">True</property>
                        <property name="can-focus">False</property>
                        <property name="icon-name">go-next-symbolic</property>
                        <property name="icon_size">1</property>
                      </object>
                    </child>
                    <style>
                      <class name="navigation-next" />
                    </style>
104
105
106
                  </object>
                </child>
                <style>
107
                  <class name="navbuttons" />
108
                </style>
109
             </object>
110
111
112
113
114
115
            </child>
            <child>
              <object class="GtkMenuButton" id="menu_button">
                <property name="visible">True</property>
                <property name="can-focus">True</property>
                <property name="tooltip-text" translatable="yes">Menu</property>
Todd Weaver's avatar
Todd Weaver committed
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
                <child>
                  <object class="GtkImage">
                    <property name="visible">True</property>
                    <property name="can-focus">False</property>
                    <property name="icon-name">open-menu-symbolic</property>
                  </object>
                </child>
                <style>
                  <class name="image-button"/>
                </style>
              </object>
              <packing>
                <property name="pack-type">end</property>
                <property name="position">1</property>
              </packing>
            </child>
            <style>
              <class name="titlebar"/>
            </style>
          </object>
          <packing>
            <property name="expand">False</property>
            <property name="fill">True</property>
            <property name="position">0</property>
          </packing>
        </child>
        <child>
          <object class="HdySearchBar" id="search_bar">
            <property name="visible">True</property>
            <property name="can-focus">False</property>
            <property name="search-mode-enabled">True</property>
            <child>
148
              <object class="GtkSearchEntry" id="search_entry_box">
Todd Weaver's avatar
Todd Weaver committed
149
150
                <property name="visible">True</property>
                <property name="can-focus">True</property>
151
                <property name="has-focus">True</property>
Todd Weaver's avatar
Todd Weaver committed
152
153
154
                <property name="primary-icon-name">edit-find-symbolic</property>
                <property name="primary-icon-activatable">False</property>
                <property name="primary-icon-sensitive">False</property>
155
                <signal name="activate" handler="search_entry" swapped="no"/>
Todd Weaver's avatar
Todd Weaver committed
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
              </object>
            </child>
          </object>
          <packing>
            <property name="expand">False</property>
            <property name="fill">True</property>
            <property name="position">1</property>
          </packing>
        </child>
        <child>
          <object class="GtkOverlay">
            <property name="visible">True</property>
            <property name="can-focus">False</property>
            <child>
              <object class="GtkStack" id="stack">
                <property name="visible">True</property>
172
                <property name="can-focus">False</property>
173
                <property name="hexpand">False</property>
Todd Weaver's avatar
Todd Weaver committed
174
175
176
177
178
179
180
181
182
                <property name="vexpand">True</property>
                <child>
                  <object class="HdyStatusPage" id="status_page">
                    <property name="visible">True</property>
                    <property name="can-focus">False</property>
                    <property name="icon-name">sm.puri.Stream</property>
                    <property name="title" translatable="yes">Search Web Videos</property>
                    <property name="description" translatable="yes">Use the &lt;b&gt;Search&lt;/b&gt; button to find videos online.</property>
                  </object>
183
184
185
                  <packing>
                    <property name="position">2</property>
                  </packing>
Todd Weaver's avatar
Todd Weaver committed
186
                </child>
187
188
189
190
191
192
193
194
                <child>
                  <object class="GtkSpinner" id="spinner">
                    <property name="visible">False</property>
                    <property name="can-focus">False</property>
                    <property name="halign">center</property>
                    <property name="valign">center</property>
                    <property name="active">True</property>
                  </object>
195
196
197
                  <packing>
                    <property name="position">3</property>
                  </packing>
198
                </child>
Todd Weaver's avatar
Todd Weaver committed
199
                <child>
200
                  <object class="GtkStack" id="scroller_stack">
201
                    <property name="visible">False</property>
202
                    <property name="can-focus">False</property>
203
                    <property name="transition-type">slide-left-right</property>
Todd Weaver's avatar
Todd Weaver committed
204
                    <child>
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
                      <placeholder/>
                    </child>
                  </object>
                  <packing>
                    <property name="position">4</property>
                  </packing>
                </child>
                <child>
                  <object class="GtkBox" id="error_box">
                    <property name="visible">False</property>
                    <property name="can-focus">False</property>
                    <property name="halign">center</property>
                    <property name="valign">center</property>
                    <property name="orientation">vertical</property>
                    <child>
                      <object class="GtkImage" id="error_image">
                        <property name="visible">True</property>
                        <property name="can-focus">False</property>
                        <property name="icon-name">network-error-symbolic</property>
                        <property name="icon_size">6</property>
                      </object>
                      <packing>
                        <property name="expand">False</property>
                        <property name="fill">True</property>
                        <property name="position">0</property>
                      </packing>
                    </child>
                    <child>
                      <object class="GtkLabel" id="error_heading">
                        <property name="visible">True</property>
235
                        <property name="can-focus">False</property>
236
                        <property name="margin-top">12</property>
Todd Weaver's avatar
Todd Weaver committed
237
                        <property name="wrap">True</property>
238
239
240
241
242
243
244
245
246
247
248
249
250
251
                        <property name="label" translatable="yes">Error</property>
                        <attributes>
                          <attribute name="weight" value="bold"/>
                          <attribute name="scale" value="1.2"/>
                        </attributes>
                      </object>
                      <packing>
                        <property name="expand">False</property>
                        <property name="fill">True</property>
                        <property name="position">1</property>
                      </packing>
                    </child>
                    <child>
                      <object class="GtkLabel" id="error_text">
Todd Weaver's avatar
Todd Weaver committed
252
                        <property name="visible">True</property>
253
254
                        <property name="can-focus">False</property>
                        <property name="margin-top">6</property>
Todd Weaver's avatar
Todd Weaver committed
255
                        <property name="wrap">True</property>
256
                        <property name="label" translatable="yes">...</property>
Todd Weaver's avatar
Todd Weaver committed
257
                      </object>
258
259
260
261
262
                      <packing>
                        <property name="expand">False</property>
                        <property name="fill">True</property>
                        <property name="position">2</property>
                      </packing>
Todd Weaver's avatar
Todd Weaver committed
263
264
265
                    </child>
                  </object>
                  <packing>
266
                    <property name="position">1</property>
Todd Weaver's avatar
Todd Weaver committed
267
268
269
270
271
272
273
274
275
276
                  </packing>
                </child>
              </object>
            </child>
           </object>
        </child>
      </object>
    </child>
  </template>
</interface>