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



commit 1fc4a0c6b6001e5388361c91844edda41b011538
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 f3e20e6..579ae0d 100644
--- a/panels/mouse/gnome-mouse-properties.c
+++ b/panels/mouse/gnome-mouse-properties.c
@@ -211,12 +211,13 @@ setup_dialog (CcMousePropertiesPrivate *d)
        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), d);
        g_settings_bind (d->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), d);
+
        /* 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]