1<?xml version="1.0" encoding="UTF-8"?>
2<interface>
3  <!-- interface-requires gtk+ 3.0 -->
4  <template class="CcMousePanel" parent="CcPanel">
5    <property name="visible">True</property>
6    <child>
7      <object class="GtkStack" id="stack">
8        <property name="visible">True</property>
9        <child>
10          <object class="GtkScrolledWindow" id="scrolled_window">
11            <property name="visible">True</property>
12            <property name="can_focus">False</property>
13            <property name="shadow_type">none</property>
14            <property name="hscrollbar_policy">never</property>
15            <signal name="size-allocate" handler="on_content_size_changed" object="CcMousePanel" swapped="yes"/>
16            <child>
17              <object class="GtkBox">
18                <property name="visible">True</property>
19                <property name="can_focus">False</property>
20                <property name="halign">center</property>
21                <property name="margin_top">32</property>
22                <property name="margin_bottom">32</property>
23                <property name="orientation">vertical</property>
24                <child>
25                  <object class="GtkFrame">
26                    <property name="visible">True</property>
27                    <property name="can_focus">False</property>
28                    <property name="shadow_type">in</property>
29                    <property name="margin_bottom">32</property>
30                    <property name="label_yalign">0.45</property>
31                    <property name="shadow_type">none</property>
32                    <child type="label">
33                      <object class="GtkLabel">
34                        <property name="visible">True</property>
35                        <property name="can_focus">False</property>
36                        <property name="xalign">0</property>
37                        <property name="label" translatable="yes">General</property>
38                       <property name="margin_bottom">12</property>
39                        <attributes>
40                          <attribute name="weight" value="bold"/>
41                        </attributes>
42                      </object>
43                    </child>
44                    <child>
45                      <object class="GtkListBox" id="general_listbox">
46                        <property name="visible">True</property>
47                        <property name="can_focus">True</property>
48                        <property name="selection_mode">none</property>
49                        <style>
50                          <class name="content"/>
51                        </style>
52                        <child>
53                          <object class="HdyActionRow" id="primary_button_row">
54                            <property name="visible">True</property>
55                            <property name="can_focus">True</property>
56                            <property name="activatable">false</property>
57                            <property name="title" translatable="yes">Primary Button</property>
58                            <property name="subtitle" translatable="yes">Sets the order of physical buttons on mice and touchpads.</property>
59                            <property name="subtitle-lines">0</property>
60                            <child>
61                              <object class="GtkGrid">
62                                <property name="visible">True</property>
63                                <property name="can_focus">False</property>
64                                <property name="row_spacing">2</property>
65                                <property name="column_spacing">16</property>
66                                <property name="margin_start">20</property>
67                                <property name="margin_end">20</property>
68                                <property name="margin_top">12</property>
69                                <property name="margin_bottom">12</property>
70                                <child>
71                                  <object class="GtkBox" id="primary_button_box">
72                                    <property name="visible">True</property>
73                                    <property name="can_focus">False</property>
74                                    <property name="valign">center</property>
75                                    <property name="homogeneous">True</property>
76                                    <style>
77                                     <class name="linked"/>
78                                    </style>
79                                    <child>
80                                      <object class="GtkRadioButton" id="primary_button_left">
81                                        <property name="visible">True</property>
82                                        <property name="can_focus">True</property>
83                                        <property name="hexpand">True</property>
84                                        <property name="label" translatable="yes">Left</property>
85                                        <property name="draw-indicator">False</property>
86                                        <property name="height_request">35</property>
87                                      </object>
88                                    </child>
89                                    <child>
90                                      <object class="GtkRadioButton" id="primary_button_right">
91                                        <property name="visible">True</property>
92                                        <property name="can_focus">True</property>
93                                        <property name="hexpand">True</property>
94                                        <property name="label" translatable="yes">Right</property>
95                                        <property name="draw-indicator">False</property>
96                                        <property name="group">primary_button_left</property>
97                                        <property name="height_request">35</property>
98                                      </object>
99                                    </child>
100                                  </object>
101                                </child>
102                              </object>
103                            </child>
104                          </object>
105                        </child>
106                      </object>
107                    </child>
108                  </object>
109                </child>
110                <child>
111                  <object class="GtkFrame" id="mouse_frame">
112                    <property name="visible">False</property>
113                    <property name="can_focus">False</property>
114                    <property name="shadow_type">none</property>
115                    <property name="label_yalign">0.45</property>
116                        <property name="margin_bottom">32</property>
117                    <child type="label">
118                      <object class="GtkLabel">
119                        <property name="visible">True</property>
120                        <property name="can_focus">False</property>
121                        <property name="xalign">0</property>
122                        <property name="label" translatable="yes">Mouse</property>
123                        <property name="margin_bottom">12</property>
124                        <attributes>
125                          <attribute name="weight" value="bold"/>
126                        </attributes>
127                      </object>
128                    </child>
129                    <child>
130                      <object class="GtkListBox" id="mouse_listbox">
131                        <property name="visible">True</property>
132                        <property name="can_focus">True</property>
133                        <property name="selection_mode">none</property>
134                        <style>
135                          <class name="content"/>
136                        </style>
137                        <child>
138                          <object class="HdyActionRow" id="mouse_row">
139                            <property name="visible">True</property>
140                            <property name="can_focus">True</property>
141                            <property name="activatable">false</property>
142                            <property name="title" translatable="yes">Mouse Speed</property>
143                            <child>
144                              <object class="GtkScale" id="mouse_speed_scale">
145                                <property name="visible">True</property>
146                                <property name="can_focus">True</property>
147                                <property name="adjustment">mouse_speed_adjustment</property>
148                                <property name="draw_value">False</property>
149                                <property name="width-request">300</property>
150                                <property name="halign">end</property>
151                                <property name="expand">True</property>
152                                <child internal-child="accessible">
153                                  <object class="AtkObject">
154                                    <property name="AtkObject::accessible-description" translatable="yes">Double-click timeout</property>
155                                  </object>
156                                </child>
157                              </object>
158                            </child>
159                          </object>
160                        </child>
161                        <child>
162                          <object class="HdyActionRow" id="mouse_natural_scrolling_row">
163                            <property name="visible">True</property>
164                            <property name="can_focus">True</property>
165                            <property name="activatable">false</property>
166                            <property name="title" translatable="yes" comments="Translators: This switch reverses the scrolling direction for mices. The term used comes from OS X so use the same translation if possible.">Natural Scrolling</property>
167                            <property name="subtitle" translatable="yes">Scrolling moves the content, not the view.</property>
168                            <child>
169                              <object class="GtkSwitch" id="mouse_natural_scrolling_switch">
170                                <property name="visible">True</property>
171                                <property name="can_focus">True</property>
172                                <property name="halign">end</property>
173                                <property name="valign">center</property>
174                              </object>
175                            </child>
176                          </object>
177                        </child>
178                      </object>
179                    </child>
180                  </object>
181                </child>
182                <child>
183                  <object class="GtkFrame" id="touchpad_frame">
184                    <property name="visible">True</property>
185                    <property name="can_focus">False</property>
186                    <property name="shadow_type">none</property>
187                    <property name="label_yalign">0.45</property>
188                    <child type="label">
189                      <object class="GtkLabel">
190                        <property name="visible">True</property>
191                        <property name="can_focus">False</property>
192                        <property name="xalign">0</property>
193                        <property name="label" translatable="yes">Touchpad</property>
194                        <property name="margin_bottom">12</property>
195                        <attributes>
196                          <attribute name="weight" value="bold"/>
197                        </attributes>
198                      </object>
199                    </child>
200                    <child>
201                      <object class="GtkListBox" id="touchpad_listbox">
202                        <property name="visible">True</property>
203                        <property name="can_focus">True</property>
204                        <property name="selection_mode">none</property>
205                        <style>
206                          <class name="content"/>
207                        </style>
208                        <child>
209                          <object class="HdyActionRow" id="touchpad_toggle_row">
210                            <property name="visible">True</property>
211                            <property name="can_focus">True</property>
212                            <property name="activatable">false</property>
213                            <property name="title" translatable="yes">Touchpad</property>
214                            <child>
215                              <object class="GtkSwitch" id="touchpad_toggle_switch">
216                                <property name="visible">True</property>
217                                <property name="can_focus">True</property>
218                                <property name="halign">end</property>
219                                <property name="valign">center</property>
220                                <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
221                              </object>
222                            </child>
223                          </object>
224                        </child>
225                        <child>
226                          <object class="HdyActionRow" id="touchpad_natural_scrolling_row">
227                            <property name="visible">True</property>
228                            <property name="can_focus">True</property>
229                            <property name="activatable">false</property>
230                            <property name="title" translatable="yes" comments="Translators: This switch reverses the scrolling direction for touchpads. The term used comes from OS X so use the same translation if possible. ">Natural Scrolling</property>
231                            <property name="subtitle" translatable="yes">Scrolling moves the content, not the view.</property>
232                            <child>
233                              <object class="GtkSwitch" id="touchpad_natural_scrolling_switch">
234                                <property name="visible">True</property>
235                                <property name="can_focus">True</property>
236                                <property name="halign">end</property>
237                                <property name="valign">center</property>
238                              </object>
239                            </child>
240                          </object>
241                        </child>
242                        <child>
243                          <object class="HdyActionRow" id="touchpad_speed_row">
244                            <property name="visible">True</property>
245                            <property name="can_focus">True</property>
246                            <property name="activatable">false</property>
247                            <property name="title" translatable="yes">Touchpad Speed</property>
248                            <child>
249                              <object class="GtkScale" id="touchpad_speed_scale">
250                                <property name="visible">True</property>
251                                <property name="can_focus">True</property>
252                                <property name="adjustment">touchpad_speed_adjustment</property>
253                                <property name="draw_value">False</property>
254                                <property name="expand">True</property>
255                                <property name="halign">end</property>
256                                <child internal-child="accessible">
257                                  <object class="AtkObject">
258                                    <property name="AtkObject::accessible-description" translatable="yes">Double-click timeout</property>
259                                  </object>
260                                </child>
261                              </object>
262                            </child>
263                          </object>
264                        </child>
265                        <child>
266                          <object class="HdyActionRow" id="tap_to_click_row">
267                            <property name="visible">False</property>
268                            <property name="can_focus">True</property>
269                            <property name="activatable">false</property>
270                            <property name="title" translatable="yes">Tap to Click</property>
271                            <child>
272                              <object class="GtkSwitch" id="tap_to_click_switch">
273                                <property name="visible">True</property>
274                                <property name="can_focus">True</property>
275                                <property name="halign">end</property>
276                                <property name="valign">center</property>
277                              </object>
278                            </child>
279                          </object>
280                        </child>
281                        <child>
282                          <object class="HdyActionRow" id="two_finger_scrolling_row">
283                            <property name="visible">False</property>
284                            <property name="can_focus">True</property>
285                            <property name="activatable">false</property>
286                            <property name="title" translatable="yes">Two-finger Scrolling</property>
287                            <child>
288                              <object class="GtkSwitch" id="two_finger_scrolling_switch">
289                                <property name="visible">True</property>
290                                <property name="can_focus">True</property>
291                                <property name="halign">end</property>
292                                <property name="valign">center</property>
293                                <signal name="state-set" handler="two_finger_scrolling_changed_event" object="CcMousePanel" swapped="yes"/>
294                              </object>
295                            </child>
296                          </object>
297                        </child>
298                        <child>
299                          <object class="HdyActionRow" id="edge_scrolling_row">
300                            <property name="visible">False</property>
301                            <property name="can_focus">True</property>
302                            <property name="activatable">false</property>
303                            <property name="title" translatable="yes">Edge Scrolling</property>
304                            <child>
305                              <object class="GtkSwitch" id="edge_scrolling_switch">
306                                <property name="visible">True</property>
307                                <property name="can_focus">True</property>
308                                <property name="halign">end</property>
309                                <property name="valign">center</property>
310                                <signal name="state-set" handler="edge_scrolling_changed_event" object="CcMousePanel" swapped="yes"/>
311                              </object>
312                            </child>
313                          </object>
314                        </child>
315                      </object>
316                    </child>
317                  </object>
318                </child>
319              </object>
320            </child>
321          </object>
322        </child>
323        <child>
324          <object class="CcMouseTest" id="mouse_test">
325            <property name="visible">True</property>
326          </object>
327        </child>
328      </object>
329    </child>
330  </template>
331  <object class="GtkToggleButton" id="test_button">
332    <property name="visible">True</property>
333    <property name="use_underline">True</property>
334    <property name="valign">center</property>
335    <property name="label" translatable="yes">Test Your _Settings</property>
336    <signal name="toggled" handler="test_button_toggled_cb" object="CcMousePanel" swapped="yes"/>
337    <style>
338      <class name="text-button"/>
339    </style>
340  </object>
341  <object class="GtkAdjustment" id="mouse_speed_adjustment">
342    <property name="lower">-1</property>
343    <property name="upper">1</property>
344  </object>
345  <object class="GtkAdjustment" id="touchpad_speed_adjustment">
346    <property name="lower">-1</property>
347    <property name="upper">1</property>
348  </object>
349  <object class="GtkSizeGroup">
350    <property name="mode">vertical</property>
351    <widgets>
352      <widget name="mouse_row"/>
353      <widget name="mouse_natural_scrolling_row"/>
354      <widget name="touchpad_toggle_row"/>
355      <widget name="touchpad_natural_scrolling_row"/>
356      <widget name="touchpad_speed_row"/>
357      <widget name="tap_to_click_row"/>
358      <widget name="edge_scrolling_row"/>
359    </widgets>
360  </object>
361  <object class="GtkSizeGroup">
362    <property name="mode">horizontal</property>
363    <widgets>
364      <widget name="mouse_speed_scale"/>
365      <widget name="touchpad_speed_scale"/>
366    </widgets>
367  </object>
368</interface>
369