gnome-control-center/panels/universal-access/cc-pointing-dialog.ui
Georges Basile Stavracas Neto 9995a3bb79 universal-access: Port to GTK4
This was quite a huge port, but fortunately it mostly involved
removing tons of deprecated widgets (without replacement; just
drop them) and adjusting packing properties.
2021-12-14 22:34:21 -03:00

300 lines
15 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<template class="CcPointingDialog" parent="GtkDialog">
<property name="title" translatable="yes">Click Assist</property>
<property name="resizable">False</property>
<property name="modal">True</property>
<property name="use_header_bar">1</property>
<child>
<object class="GtkBox">
<property name="margin_start">12</property>
<property name="margin_end">12</property>
<property name="margin_top">12</property>
<property name="margin_bottom">12</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkGrid">
<property name="margin_end">6</property>
<property name="margin_top">6</property>
<property name="margin_bottom">12</property>
<property name="row_spacing">18</property>
<property name="column_spacing">24</property>
<child>
<object class="GtkBox">
<property name="valign">start</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<layout>
<property name="column">0</property>
<property name="row">0</property>
</layout>
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel">
<property name="xalign">0</property>
<property name="label" translatable="yes">_Simulated Secondary Click</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">secondary_click_switch</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="xalign">0</property>
<property name="label" translatable="yes">Trigger a secondary click by holding down the primary button</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox">
<property name="valign">start</property>
<property name="margin_start">10</property>
<property name="margin_end">10</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox" id="secondary_click_delay_box">
<property name="spacing">12</property>
<child>
<object class="GtkLabel" id="secondary_click_delay_label">
<property name="xalign">0</property>
<property name="label" translatable="yes">A_cceptance delay:</property>
<property name="use_underline">True</property>
<property name="justify">center</property>
<property name="mnemonic_widget">secondary_click_delay_scale</property>
</object>
</child>
<child>
<object class="GtkBox">
<property name="spacing">6</property>
<child>
<object class="GtkLabel">
<property name="xalign">1</property>
<property name="label" translatable="yes" context="secondary click">Short</property>
<attributes>
<attribute name="scale" value="0.83"/>
</attributes>
</object>
</child>
<child>
<object class="GtkScale" id="secondary_click_delay_scale">
<property name="adjustment">click_delay_adjustment</property>
<property name="draw_value">False</property>
<property name="hexpand">True</property>
<accessibility>
<property name="label" translatable="yes">Secondary click delay</property>
</accessibility>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="xalign">0</property>
<property name="label" translatable="yes" context="secondary click delay">Long</property>
<attributes>
<attribute name="scale" value="0.83"/>
</attributes>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox">
<property name="valign">start</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<layout>
<property name="column">0</property>
<property name="row">1</property>
</layout>
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel">
<property name="xalign">0</property>
<property name="label" translatable="yes">_Hover Click</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">hover_click_switch</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="xalign">0</property>
<property name="label" translatable="yes">Trigger a click when the pointer hovers</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox">
<property name="valign">start</property>
<property name="margin_start">10</property>
<property name="margin_end">10</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox" id="dwell_delay_box">
<property name="spacing">12</property>
<child>
<object class="GtkLabel" id="dwell_delay_label">
<property name="xalign">0</property>
<property name="label" translatable="yes">D_elay:</property>
<property name="use_underline">True</property>
<property name="justify">center</property>
<property name="mnemonic_widget">dwell_delay_scale</property>
</object>
</child>
<child>
<object class="GtkBox">
<property name="spacing">6</property>
<child>
<object class="GtkLabel">
<property name="xalign">1</property>
<property name="label" translatable="yes" context="dwell click delay">Short</property>
<property name="justify">center</property>
<attributes>
<attribute name="scale" value="0.83"/>
</attributes>
</object>
</child>
<child>
<object class="GtkScale" id="dwell_delay_scale">
<property name="adjustment">dwell_time_adjustment</property>
<property name="draw_value">False</property>
<property name="value_pos">right</property>
<property name="hexpand">True</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="xalign">0</property>
<property name="label" translatable="yes" context="dwell click delay">Long</property>
<property name="justify">center</property>
<attributes>
<attribute name="scale" value="0.83"/>
</attributes>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox" id="dwell_threshold_box">
<property name="spacing">12</property>
<child>
<object class="GtkLabel" id="dwell_threshold_label">
<property name="xalign">0</property>
<property name="label" translatable="yes">Motion _threshold:</property>
<property name="use_underline">True</property>
<property name="justify">center</property>
<property name="mnemonic_widget">dwell_threshold_scale</property>
</object>
</child>
<child>
<object class="GtkBox">
<property name="spacing">6</property>
<child>
<object class="GtkLabel">
<property name="xalign">1</property>
<property name="label" translatable="yes" context="dwell click threshold">Small</property>
<property name="justify">center</property>
<attributes>
<attribute name="scale" value="0.83"/>
</attributes>
</object>
</child>
<child>
<object class="GtkScale" id="dwell_threshold_scale">
<property name="adjustment">dwell_threshold_adjustment</property>
<property name="digits">0</property>
<property name="draw_value">False</property>
<property name="hexpand">True</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="xalign">0</property>
<property name="label" translatable="yes" context="dwell click threshold">Large</property>
<property name="justify">center</property>
<attributes>
<attribute name="scale" value="0.83"/>
</attributes>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkSwitch" id="secondary_click_switch">
<property name="halign">end</property>
<property name="valign">start</property>
<property name="hexpand">True</property>
<layout>
<property name="column">1</property>
<property name="row">0</property>
</layout>
</object>
</child>
<child>
<object class="GtkSwitch" id="hover_click_switch">
<property name="halign">end</property>
<property name="valign">start</property>
<property name="hexpand">True</property>
<layout>
<property name="column">1</property>
<property name="row">1</property>
</layout>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
<object class="GtkSizeGroup">
<widgets>
<widget name="secondary_click_delay_label"/>
<widget name="dwell_delay_label"/>
<widget name="dwell_threshold_label"/>
</widgets>
</object>
<object class="GtkAdjustment" id="click_delay_adjustment">
<property name="lower">0.5</property>
<property name="upper">3</property>
<property name="value">1.2</property>
<property name="step_increment">0.1</property>
<property name="page_increment">0.1</property>
</object>
<object class="GtkAdjustment" id="dwell_threshold_adjustment">
<property name="upper">30</property>
<property name="value">15</property>
<property name="step_increment">1</property>
<property name="page_increment">1</property>
</object>
<object class="GtkAdjustment" id="dwell_time_adjustment">
<property name="lower">0.2</property>
<property name="upper">3</property>
<property name="value">1.2</property>
<property name="step_increment">0.1</property>
<property name="page_increment">0.1</property>
</object>
</interface>