summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-02-11 23:19:45 +0100
committerStefano Karapetsas <[email protected]>2013-02-11 23:19:45 +0100
commit241316d63713043650cfc96f6c861a3a3732b403 (patch)
treebbd70d814a9c795ecac877f6a27647ddfb6ad955
parentaf0c1c2aa6bf7edfac839719956f3ba19660473c (diff)
downloadmate-control-center-241316d63713043650cfc96f6c861a3a3732b403.tar.bz2
mate-control-center-241316d63713043650cfc96f6c861a3a3732b403.tar.xz
mouse: Fix touchpad scrolling settings
Closes https://github.com/mate-desktop/mate-control-center/issues/34
-rw-r--r--capplets/mouse/mate-mouse-properties.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/capplets/mouse/mate-mouse-properties.c b/capplets/mouse/mate-mouse-properties.c
index 6b0f3bf2..a6a7b626 100644
--- a/capplets/mouse/mate-mouse-properties.c
+++ b/capplets/mouse/mate-mouse-properties.c
@@ -204,12 +204,14 @@ scrollmethod_gsettings_changed_event (GSettings *settings,
GtkBuilder *dialog)
{
int scroll_method = g_settings_get_int (touchpad_settings, "scroll-method");
- gtk_widget_set_sensitive (WID ("scroll_disabled_radio"),
+ gtk_toggle_button_set_active (WID ("scroll_disabled_radio"),
scroll_method == 0);
- gtk_widget_set_sensitive (WID ("scroll_edge_radio"),
+ gtk_toggle_button_set_active (WID ("scroll_edge_radio"),
scroll_method == 1);
- gtk_widget_set_sensitive (WID ("scroll_twofinger_radio"),
+ gtk_toggle_button_set_active (WID ("scroll_twofinger_radio"),
scroll_method == 2);
+ gtk_widget_set_sensitive (WID ("horiz_scroll_toggle"),
+ scroll_method != 0);
}
static void