[gnome-settings-daemon/gnome-3-8] mouse: Fix critical warnings with touchpad settings
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-8] mouse: Fix critical warnings with touchpad settings
- Date: Wed, 2 Oct 2013 22:01:35 +0000 (UTC)
commit 2a65024f639f91485a755f7a2ceb3573d7cec407
Author: Kalev Lember <kalevlember gmail com>
Date: Sat Sep 21 20:16:08 2013 +0200
mouse: Fix critical warnings with touchpad settings
The code was handling touchpad "left-handed" key as a boolean, but it's
an enum.
https://bugzilla.gnome.org/show_bug.cgi?id=708546
plugins/mouse/gsd-mouse-manager.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/mouse/gsd-mouse-manager.c b/plugins/mouse/gsd-mouse-manager.c
index ec01d83..9fe078d 100644
--- a/plugins/mouse/gsd-mouse-manager.c
+++ b/plugins/mouse/gsd-mouse-manager.c
@@ -1091,8 +1091,10 @@ touchpad_callback (GSettings *settings,
continue;
if (g_str_equal (key, KEY_TAP_TO_CLICK)) {
+ gboolean mouse_left_handed;
+ mouse_left_handed = g_settings_get_boolean (manager->priv->mouse_settings,
KEY_LEFT_HANDED);
set_tap_to_click (device, g_settings_get_boolean (settings, key),
- g_settings_get_boolean (manager->priv->touchpad_settings,
KEY_LEFT_HANDED));
+ get_touchpad_handedness (manager, mouse_left_handed));
} else if (g_str_equal (key, KEY_SCROLL_METHOD)) {
set_scroll_method (manager, device, g_settings_get_enum (settings, key));
set_horiz_scroll (device, g_settings_get_boolean (settings, KEY_PAD_HORIZ_SCROLL));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]