[gnome-control-center] mouse: Bind motion acceleration and threshold for both mouse and touchpad settings



commit d17eb7d050e11f006e4aff0eda7a5ac7328a841e
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Wed Oct 20 15:54:11 2010 +0200

    mouse: Bind motion acceleration and threshold for both mouse and touchpad settings

 panels/mouse/gnome-mouse-properties.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/panels/mouse/gnome-mouse-properties.c b/panels/mouse/gnome-mouse-properties.c
index 54a07dd..087983e 100644
--- a/panels/mouse/gnome-mouse-properties.c
+++ b/panels/mouse/gnome-mouse-properties.c
@@ -341,9 +341,16 @@ setup_dialog (GtkBuilder *dialog)
 	g_settings_bind (mouse_settings, "motion-acceleration",
 			 gtk_range_get_adjustment (GTK_RANGE (WID ("accel_scale"))), "value",
 			 G_SETTINGS_BIND_DEFAULT);
+	g_settings_bind (touchpad_settings, "motion-acceleration",
+			 gtk_range_get_adjustment (GTK_RANGE (WID ("accel_scale"))), "value",
+			 G_SETTINGS_BIND_DEFAULT);
+
 	g_settings_bind (mouse_settings, "motion-threshold",
 			 gtk_range_get_adjustment (GTK_RANGE (WID ("sensitivity_scale"))), "value",
 			 G_SETTINGS_BIND_DEFAULT);
+	g_settings_bind (touchpad_settings, "motion-threshold",
+			 gtk_range_get_adjustment (GTK_RANGE (WID ("sensitivity_scale"))), "value",
+			 G_SETTINGS_BIND_DEFAULT);
 
 	/* DnD threshold */
 	g_settings_bind (mouse_settings, "drag-threshold",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]