[gnome-settings-daemon] mouse: Remove unused GConfClient variables
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] mouse: Remove unused GConfClient variables
- Date: Tue, 12 Oct 2010 16:48:04 +0000 (UTC)
commit 4cbced621a229668b6819c7ca9d3b5a6d4761df8
Author: Bastien Nocera <hadess hadess net>
Date: Tue Oct 12 17:46:14 2010 +0100
mouse: Remove unused GConfClient variables
Spotted by Yuri Khan <yurivkhan gmail com>
plugins/mouse/gsd-mouse-manager.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/plugins/mouse/gsd-mouse-manager.c b/plugins/mouse/gsd-mouse-manager.c
index d2462a1..2b61d7b 100644
--- a/plugins/mouse/gsd-mouse-manager.c
+++ b/plugins/mouse/gsd-mouse-manager.c
@@ -328,14 +328,12 @@ set_xinput_devices_left_handed (GsdMouseManager *manager, gboolean left_handed)
* around too, otherwise a tap would be a right-click */
device = device_is_touchpad (device_info[i]);
if (device != NULL) {
- GConfClient *client = gconf_client_get_default ();
gboolean tap = g_settings_get_boolean (manager->priv->touchpad_settings, KEY_TAP_TO_CLICK);
gboolean single_button = touchpad_has_single_button (device);
if (tap && !single_button)
set_tap_to_click (tap, left_handed);
XCloseDevice (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), device);
- g_object_unref (client);
if (single_button)
continue;
@@ -572,10 +570,7 @@ set_disable_w_typing (GsdMouseManager *manager, gboolean state)
manager->priv->syndaemon_spawned = (error == NULL);
if (error) {
- GConfClient *client;
- client = gconf_client_get_default ();
g_settings_set_boolean (manager->priv->touchpad_settings, KEY_TOUCHPAD_DISABLE_W_TYPING, FALSE);
- g_object_unref (client);
g_error_free (error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]