summaryrefslogtreecommitdiff
path: root/capplets/mouse/mate-mouse-properties.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-05-25 14:15:46 +0200
committerStefano Karapetsas <[email protected]>2013-05-25 14:15:46 +0200
commitde6b482d5e195067273f262c829c0772241cb586 (patch)
tree84f0a818aaecb7909de748142b7882a67c8151f1 /capplets/mouse/mate-mouse-properties.c
parenta96297cd46b7e6ccd979b2e1786b752b27bb3f36 (diff)
downloadmate-control-center-de6b482d5e195067273f262c829c0772241cb586.tar.bz2
mate-control-center-de6b482d5e195067273f262c829c0772241cb586.tar.xz
mouse: Fix loading of GSettings prefs
Diffstat (limited to 'capplets/mouse/mate-mouse-properties.c')
-rw-r--r--capplets/mouse/mate-mouse-properties.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/capplets/mouse/mate-mouse-properties.c b/capplets/mouse/mate-mouse-properties.c
index a6a7b626..ba22d908 100644
--- a/capplets/mouse/mate-mouse-properties.c
+++ b/capplets/mouse/mate-mouse-properties.c
@@ -406,18 +406,12 @@ setup_dialog (GtkBuilder *dialog)
WID ("horiz_scroll_toggle"), "active",
G_SETTINGS_BIND_DEFAULT);
+ scrollmethod_gsettings_changed_event (touchpad_settings, "scroll-method", dialog);
+
radio = GTK_RADIO_BUTTON (WID ("scroll_disabled_radio"));
GSList *radio_group = gtk_radio_button_get_group (radio);
- GSList *item;
- gint i;
- gint scroll_method = g_settings_get_int(touchpad_settings, "scroll-method");
- for (item = radio_group; item != NULL; item = item->next) {
- if (i == scroll_method) {
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(item->data), TRUE);
- break;
- }
- i++;
- }
+ GSList *item = NULL;
+
synaptics_check_capabilities (dialog);
for (item = radio_group; item != NULL; item = item->next) {
g_signal_connect (G_OBJECT (item->data), "clicked",