diff -ur gnome-control-center-2.32.1/capplets/mouse/gnome-mouse-properties.c gnome-control-center-2.32.1-touchpadscrolling/capplets/mouse/gnome-mouse-properties.c --- gnome-control-center-2.32.1/capplets/mouse/gnome-mouse-properties.c 2010-11-18 09:05:08.000000000 +0000 +++ gnome-control-center-2.32.1-touchpadscrolling/capplets/mouse/gnome-mouse-properties.c 2011-12-09 10:37:50.000000000 +0000 @@ -316,18 +316,6 @@ } static void -scrollmethod_changed_event (GConfPropertyEditor *peditor, - const gchar *key, - const GConfValue *value, - GtkBuilder *dialog) -{ - GtkToggleButton *disabled = GTK_TOGGLE_BUTTON (WID ("scroll_disabled_radio")); - - gtk_widget_set_sensitive (WID ("horiz_scroll_toggle"), - !gtk_toggle_button_get_active (disabled)); -} - -static void synaptics_check_capabilities (GtkBuilder *dialog) { #ifdef HAVE_XINPUT @@ -367,7 +355,7 @@ /* Disable two finger scrolling unless the hardware supports * double touch or can emulate it based on finger width. */ if (!(data[3] ||(nitems >= 6 && data[5]))) - gtk_widget_set_sensitive (WID ("scroll_twofinger_radio"), FALSE); + gtk_widget_set_sensitive (WID ("scroll_twofinger_toggle"), FALSE); XFree (data); } @@ -497,16 +485,13 @@ gconf_peditor_new_boolean (changeset, "/desktop/gnome/peripherals/touchpad/tap_to_click", WID ("tap_to_click_toggle"), NULL); gconf_peditor_new_boolean + (changeset, "/desktop/gnome/peripherals/touchpad/vert_scroll_enabled", WID ("vert_scroll_toggle"), NULL); + gconf_peditor_new_boolean (changeset, "/desktop/gnome/peripherals/touchpad/horiz_scroll_enabled", WID ("horiz_scroll_toggle"), NULL); - radio = GTK_RADIO_BUTTON (WID ("scroll_disabled_radio")); - peditor = gconf_peditor_new_select_radio - (changeset, "/desktop/gnome/peripherals/touchpad/scroll_method", gtk_radio_button_get_group (radio), - NULL); + gconf_peditor_new_boolean + (changeset, "/desktop/gnome/peripherals/touchpad/twofinger_scroll_enabled", WID ("twofinger_scroll_toggle"), NULL); synaptics_check_capabilities (dialog); - scrollmethod_changed_event (GCONF_PROPERTY_EDITOR (peditor), NULL, NULL, dialog); - g_signal_connect (peditor, "value-changed", - G_CALLBACK (scrollmethod_changed_event), dialog); } } diff -ur gnome-control-center-2.32.1/capplets/mouse/gnome-mouse-properties.ui gnome-control-center-2.32.1-touchpadscrolling/capplets/mouse/gnome-mouse-properties.ui --- gnome-control-center-2.32.1/capplets/mouse/gnome-mouse-properties.ui 2010-11-18 09:05:08.000000000 +0000 +++ gnome-control-center-2.32.1-touchpadscrolling/capplets/mouse/gnome-mouse-properties.ui 2011-12-09 15:04:38.000000000 +0000 @@ -1531,55 +1531,14 @@ - + + Enable v_ertical scrolling True - - - _Disabled - True - True - False - True - True - - - False - False - 0 - - - - - _Edge scrolling - True - True - False - True - True - scroll_disabled_radio - - - False - False - 1 - - - - - Two-_finger scrolling - True - True - False - True - True - scroll_disabled_radio - - - False - False - 2 - - + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + True + True 1 @@ -1631,6 +1590,45 @@ 2 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + 0 + + + + False + False + 0 + + + + + Enable two-_finger scrolling + True + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + True + True + + + 1 + + + + + False + False + 3 + + False