[gnome-control-center/gnome-3-8] mouse: Restore mouse and touchpad pointer speed
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-8] mouse: Restore mouse and touchpad pointer speed
- Date: Thu, 2 May 2013 14:32:30 +0000 (UTC)
commit 9aa8eefb35853623335e5182decba5b50acfce84
Author: Ondrej Holy <oholy redhat com>
Date: Thu May 2 14:29:38 2013 +0200
mouse: Restore mouse and touchpad pointer speed
https://bugzilla.gnome.org/show_bug.cgi?id=699015
panels/mouse/gnome-mouse-properties.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/panels/mouse/gnome-mouse-properties.c b/panels/mouse/gnome-mouse-properties.c
index 66f3d11..00e4f48 100644
--- a/panels/mouse/gnome-mouse-properties.c
+++ b/panels/mouse/gnome-mouse-properties.c
@@ -181,6 +181,9 @@ setup_dialog (GtkBuilder *dialog)
g_signal_connect (WID ("pointer_speed_scale"), "value-changed",
G_CALLBACK (pointer_speed_scale_event), dialog);
+ g_settings_bind (mouse_settings, "motion-acceleration",
+ gtk_range_get_adjustment (GTK_RANGE (WID ("pointer_speed_scale"))), "value",
+ G_SETTINGS_BIND_DEFAULT);
/* Trackpad page */
touchpad_present = touchpad_is_present ();
@@ -203,6 +206,9 @@ setup_dialog (GtkBuilder *dialog)
g_settings_bind (touchpad_settings, "natural-scroll",
WID ("natural_scroll_toggle"), "active",
G_SETTINGS_BIND_DEFAULT);
+ g_settings_bind (touchpad_settings, "motion-acceleration",
+ gtk_range_get_adjustment (GTK_RANGE (WID ("touchpad_pointer_speed_scale"))), "value",
+ G_SETTINGS_BIND_DEFAULT);
g_signal_connect (WID ("touchpad_pointer_speed_scale"), "value-changed",
G_CALLBACK (pointer_speed_scale_event), dialog);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]