Commit cdc5fbd6 authored by Freeroot's avatar Freeroot
Browse files

add tap-and-drag option

parent af0186aa
Pipeline #10587 canceled with stages
in 20 minutes and 5 seconds
......@@ -96,6 +96,7 @@ setup_touchpad_options (CcMousePropertiesPrivate *d)
gtk_widget_set_visible (WID ("two-finger-scrolling-row"), have_two_finger_scrolling);
gtk_widget_set_visible (WID ("edge-scrolling-row"), have_edge_scrolling);
gtk_widget_set_visible (WID ("tap-to-click-row"), have_tap_to_click);
gtk_widget_set_visible (WID ("tap-and-drag-row"), have_tap_to_click);
edge_scroll_enabled = g_settings_get_boolean (d->touchpad_settings, "edge-scrolling-enabled");
two_finger_scroll_enabled = g_settings_get_boolean (d->touchpad_settings, "two-finger-scrolling-enabled");
......@@ -290,6 +291,10 @@ setup_dialog (CcMousePropertiesPrivate *d)
WID ("tap-to-click-switch"), "active",
G_SETTINGS_BIND_DEFAULT);
g_settings_bind (d->touchpad_settings, "tap-and-drag",
WID ("tap-and-drag-switch"), "active",
G_SETTINGS_BIND_DEFAULT);
setup_touchpad_options (d);
g_signal_connect (WID ("edge-scrolling-switch"), "state-set",
......
......@@ -607,6 +607,58 @@
</child>
</object>
</child>
<child>
<object class="GtkListBoxRow" id="tap-and-drag-row">
<property name="visible">False</property>
<property name="can_focus">True</property>
<property name="activatable">false</property>
<child>
<object class="GtkGrid" id="tap-and-drag-grid">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="row_spacing">0</property>
<property name="column_spacing">32</property>
<property name="margin_start">20</property>
<property name="margin_end">20</property>
<property name="margin_top">12</property>
<property name="margin_bottom">12</property>
<property name="valign">center</property>
<child>
<object class="GtkLabel" id="tap-and-drag-label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="xalign">0</property>
<property name="valign">end</property>
<property name="label" translatable="yes">Tap and drag</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">tap-and-drag-switch</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkSwitch" id="tap-and-drag-switch">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="halign">end</property>
<property name="valign">center</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">2</property>
</packing>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkListBoxRow" id="two-finger-scrolling-row">
<property name="visible">False</property>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment