[gnome-settings-daemon] mouse: Initialize "natural-scroll" from settings
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] mouse: Initialize "natural-scroll" from settings
- Date: Thu, 23 Aug 2012 16:07:46 +0000 (UTC)
commit c6a193d6c9712e5421b41cba9c60b88a62454889
Author: Florian MÃllner <fmuellner gnome org>
Date: Thu Aug 23 16:40:32 2012 +0200
mouse: Initialize "natural-scroll" from settings
Currently the "natural-scroll" preference is initialized to FALSE
and is only updated when the corresponding setting changes.
https://bugzilla.gnome.org/show_bug.cgi?id=682551
plugins/mouse/gsd-mouse-manager.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/mouse/gsd-mouse-manager.c b/plugins/mouse/gsd-mouse-manager.c
index 151fc6d..36154fe 100644
--- a/plugins/mouse/gsd-mouse-manager.c
+++ b/plugins/mouse/gsd-mouse-manager.c
@@ -100,6 +100,9 @@ static void gsd_mouse_manager_finalize (GObject *object);
static void set_tap_to_click (GdkDevice *device,
gboolean state,
gboolean left_handed);
+static void set_natural_scroll (GsdMouseManager *manager,
+ GdkDevice *device,
+ gboolean natural_scroll);
G_DEFINE_TYPE (GsdMouseManager, gsd_mouse_manager, G_TYPE_OBJECT)
@@ -956,6 +959,7 @@ set_mouse_settings (GsdMouseManager *manager,
set_tap_to_click (device, g_settings_get_boolean (manager->priv->touchpad_settings, KEY_TAP_TO_CLICK), touchpad_left_handed);
set_edge_scroll (device, g_settings_get_enum (manager->priv->touchpad_settings, KEY_SCROLL_METHOD));
set_horiz_scroll (device, g_settings_get_boolean (manager->priv->touchpad_settings, KEY_PAD_HORIZ_SCROLL));
+ set_natural_scroll (manager, device, g_settings_get_boolean (manager->priv->touchpad_settings, KEY_NATURAL_SCROLL_ENABLED));
if (g_settings_get_boolean (manager->priv->touchpad_settings, KEY_TOUCHPAD_ENABLED) == FALSE)
set_touchpad_disabled (device);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]