2012-08-20 19:24:03 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<interface>
|
|
|
|
<!-- interface-requires gtk+ 3.0 -->
|
2012-08-23 15:10:19 +02:00
|
|
|
<object class="GtkAdjustment" id="scrolled_window_adjustment">
|
|
|
|
<property name="upper">100</property>
|
|
|
|
<property name="value">100</property>
|
|
|
|
<property name="step_increment">1</property>
|
|
|
|
<property name="page_increment">10</property>
|
2023-01-05 13:30:37 +01:00
|
|
|
<signal name="value-changed" handler="on_scroll_adjustment_changed_cb"/>
|
2012-08-23 15:10:19 +02:00
|
|
|
</object>
|
2023-01-03 13:30:58 +01:00
|
|
|
<template class="CcMouseTest" parent="AdwWindow">
|
2023-07-31 10:43:42 +04:00
|
|
|
<property name="title" translatable="yes">Test Mouse & Touchpad</property>
|
2023-01-03 13:30:58 +01:00
|
|
|
<property name="modal">True</property>
|
|
|
|
<property name="hide-on-close">True</property>
|
2023-01-05 13:30:37 +01:00
|
|
|
<signal name="show" handler="on_mouse_test_show_cb"/>
|
2023-07-31 10:43:42 +04:00
|
|
|
<property name="content">
|
|
|
|
<object class="AdwToolbarView">
|
|
|
|
<child type="top">
|
|
|
|
<object class="AdwHeaderBar"/>
|
2023-01-03 13:30:58 +01:00
|
|
|
</child>
|
2023-07-31 10:43:42 +04:00
|
|
|
<property name="content">
|
2023-01-05 13:30:37 +01:00
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="orientation">vertical</property>
|
|
|
|
<property name="margin-start">30</property>
|
|
|
|
<property name="margin-end">30</property>
|
2023-07-31 10:43:42 +04:00
|
|
|
<property name="margin-top">12</property>
|
2023-01-05 13:30:37 +01:00
|
|
|
<property name="margin-bottom">30</property>
|
2012-08-20 19:24:03 +02:00
|
|
|
<child>
|
2023-01-05 13:30:37 +01:00
|
|
|
<object class="GtkOverlay">
|
|
|
|
<child type="overlay">
|
|
|
|
<object class="GtkImage" id="arrow_up">
|
|
|
|
<property name="icon-name">go-up-symbolic</property>
|
|
|
|
<property name="pixel-size">72</property>
|
|
|
|
<property name="valign">start</property>
|
|
|
|
<style>
|
|
|
|
<class name="mouse-test-arrow"/>
|
|
|
|
</style>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child type="overlay">
|
|
|
|
<object class="GtkImage" id="arrow_down">
|
|
|
|
<property name="icon-name">go-down-symbolic</property>
|
|
|
|
<property name="pixel-size">72</property>
|
|
|
|
<property name="valign">end</property>
|
|
|
|
<style>
|
|
|
|
<class name="mouse-test-arrow"/>
|
|
|
|
</style>
|
|
|
|
</object>
|
|
|
|
</child>
|
2012-08-23 15:10:19 +02:00
|
|
|
<child>
|
2023-01-05 13:30:37 +01:00
|
|
|
<object class="GtkScrolledWindow" id="scrolledwindow">
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="vexpand">True</property>
|
|
|
|
<property name="vadjustment">scrolled_window_adjustment</property>
|
|
|
|
<property name="hscrollbar_policy">never</property>
|
|
|
|
<property name="vscrollbar_policy">external</property>
|
2023-02-20 11:54:16 +01:00
|
|
|
<property name="min_content_height">440</property>
|
2012-08-23 15:10:19 +02:00
|
|
|
<child>
|
2023-01-05 13:30:37 +01:00
|
|
|
<object class="GtkViewport" id="viewport">
|
|
|
|
<style>
|
|
|
|
<class name="mouse-test-viewport"/>
|
|
|
|
</style>
|
2021-10-21 15:59:55 -03:00
|
|
|
<child>
|
2023-01-05 13:30:37 +01:00
|
|
|
<object class="GtkPicture" id="image">
|
|
|
|
<property name="can-shrink">False</property>
|
|
|
|
<property name="file">resource:///org/gnome/control-center/mouse/scroll-test.svg</property>
|
2021-10-21 15:59:55 -03:00
|
|
|
</object>
|
|
|
|
</child>
|
2012-08-23 15:10:19 +02:00
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
2012-08-20 19:24:03 +02:00
|
|
|
</object>
|
|
|
|
</child>
|
2023-01-05 13:30:37 +01:00
|
|
|
<child>
|
|
|
|
<object class="GtkBox">
|
|
|
|
<property name="homogeneous">True</property>
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<property name="margin-start">60</property>
|
|
|
|
<property name="margin-end">60</property>
|
|
|
|
<property name="margin-top">30</property>
|
|
|
|
<property name="spacing">20</property>
|
|
|
|
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="single_click_button">
|
|
|
|
<property name="label" translatable="yes">Single Click</property>
|
|
|
|
<style>
|
|
|
|
<class name="pill"/>
|
|
|
|
</style>
|
|
|
|
<child>
|
|
|
|
<object class="GtkGestureClick">
|
|
|
|
<property name="propagation-phase">capture</property>
|
|
|
|
<signal name="pressed" handler="on_test_button_clicked_cb"/>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkButton" id="double_click_button">
|
|
|
|
<property name="label" translatable="yes">Double Click</property>
|
|
|
|
<style>
|
|
|
|
<class name="pill"/>
|
|
|
|
</style>
|
|
|
|
<child>
|
|
|
|
<object class="GtkGestureClick">
|
|
|
|
<property name="propagation-phase">capture</property>
|
|
|
|
<signal name="pressed" handler="on_test_button_clicked_cb"/>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
2021-10-21 15:59:55 -03:00
|
|
|
</object>
|
2023-07-31 10:43:42 +04:00
|
|
|
</property>
|
2012-08-20 19:24:03 +02:00
|
|
|
</object>
|
2023-07-31 10:43:42 +04:00
|
|
|
</property>
|
2018-05-28 12:40:11 +12:00
|
|
|
</template>
|
2012-08-20 19:24:03 +02:00
|
|
|
</interface>
|