summaryrefslogtreecommitdiff
path: root/plugins/mouse
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-10-26 17:53:16 +0300
committermonsta <[email protected]>2016-10-26 17:53:16 +0300
commitb493f60c8c579ef5a0fed056e8a07e31a9bafca7 (patch)
tree193205bb4df75b05dc0d65a8da279fa085cc37be /plugins/mouse
parenta20e12029f82ce246482ec26415c399e8421a419 (diff)
downloadmate-settings-daemon-b493f60c8c579ef5a0fed056e8a07e31a9bafca7.tar.bz2
mate-settings-daemon-b493f60c8c579ef5a0fed056e8a07e31a9bafca7.tar.xz
mouse: don't create duplicate GSettings instance
Diffstat (limited to 'plugins/mouse')
-rw-r--r--plugins/mouse/msd-mouse-manager.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/mouse/msd-mouse-manager.c b/plugins/mouse/msd-mouse-manager.c
index a82e290..8a521d5 100644
--- a/plugins/mouse/msd-mouse-manager.c
+++ b/plugins/mouse/msd-mouse-manager.c
@@ -257,14 +257,12 @@ set_left_handed (MsdMouseManager * manager, gboolean left_handed)
* around too, otherwise a tap would be a right-click */
device = device_is_touchpad (device_info[i]);
if (device != NULL) {
- GSettings *settings = g_settings_new (MATE_TOUCHPAD_SCHEMA);
- gboolean tap = g_settings_get_boolean (settings, KEY_TOUCHPAD_TAP_TO_CLICK);
+ gboolean tap = g_settings_get_boolean (manager->priv->settings_touchpad, KEY_TOUCHPAD_TAP_TO_CLICK);
gboolean single_button = touchpad_has_single_button (device);
if (tap && !single_button)
set_tap_to_click (manager);
XCloseDevice (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), device);
- g_object_unref (settings);
if (single_button)
continue;