[gnome-control-center/gnome-3-8] mouse: do not reset mouse speed when unset



commit 6ef6bfbebf00379a6e43cf7f402ab80de6c6b41d
Author: Ondrej Holy <oholy redhat com>
Date:   Tue Sep 17 17:32:53 2013 +0200

    mouse: do not reset mouse speed when unset
    
    https://bugzilla.gnome.org/show_bug.cgi?id=708241

 panels/mouse/gnome-mouse-properties.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/panels/mouse/gnome-mouse-properties.c b/panels/mouse/gnome-mouse-properties.c
index a31758c..b04b37c 100644
--- a/panels/mouse/gnome-mouse-properties.c
+++ b/panels/mouse/gnome-mouse-properties.c
@@ -199,12 +199,13 @@ setup_dialog (GtkBuilder *dialog)
        mouse_present = mouse_is_present ();
        gtk_widget_set_visible (WID ("mouse_vbox"), mouse_present);
 
-       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);
 
+       g_signal_connect (WID ("pointer_speed_scale"), "value-changed",
+                         G_CALLBACK (pointer_speed_scale_event), dialog);
+
        /* Trackpad page */
        touchpad_present = touchpad_is_present ();
        gtk_widget_set_visible (WID ("touchpad_vbox"), touchpad_present);


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