diff options
author | monsta <[email protected]> | 2015-10-28 17:19:40 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2015-10-28 17:19:40 +0300 |
commit | a2d76a4dac46aa6d4ceee00081910d7f6243d36b (patch) | |
tree | c64c2653aad4187296e062ab89643a297c7437d2 /capplets/mouse/mate-mouse-properties.c | |
parent | 26eca7cec46200886c966a697e390d4886590ecb (diff) | |
download | mate-control-center-a2d76a4dac46aa6d4ceee00081910d7f6243d36b.tar.bz2 mate-control-center-a2d76a4dac46aa6d4ceee00081910d7f6243d36b.tar.xz |
touchpad settings: add option to enable/disable touchpad
fixes https://github.com/mate-desktop/mate-desktop/issues/178
Diffstat (limited to 'capplets/mouse/mate-mouse-properties.c')
-rw-r--r-- | capplets/mouse/mate-mouse-properties.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/capplets/mouse/mate-mouse-properties.c b/capplets/mouse/mate-mouse-properties.c index 4db0e576..2896ca18 100644 --- a/capplets/mouse/mate-mouse-properties.c +++ b/capplets/mouse/mate-mouse-properties.c @@ -408,6 +408,15 @@ setup_dialog (GtkBuilder *dialog) if (find_synaptics () == FALSE) gtk_notebook_remove_page (GTK_NOTEBOOK (WID ("prefs_widget")), -1); else { + g_settings_bind (touchpad_settings, "touchpad-enabled", + WID ("touchpad_enable"), "active", + G_SETTINGS_BIND_DEFAULT); + g_settings_bind (touchpad_settings, "touchpad-enabled", + WID ("vbox_touchpad_general"), "sensitive", + G_SETTINGS_BIND_DEFAULT); + g_settings_bind (touchpad_settings, "touchpad-enabled", + WID ("vbox_touchpad_scrolling"), "sensitive", + G_SETTINGS_BIND_DEFAULT); g_settings_bind (touchpad_settings, "disable-while-typing", WID ("disable_w_typing_toggle"), "active", G_SETTINGS_BIND_DEFAULT); |