[gnome-settings-daemon/gnome-3-4] mouse: Add better debug in setting functions



commit 8fb5d4d551e4c86ea255800e6e59845223c1a587
Author: Bastien Nocera <hadess hadess net>
Date:   Fri May 25 18:36:25 2012 +0100

    mouse: Add better debug in setting functions

 plugins/mouse/gsd-mouse-manager.c |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/plugins/mouse/gsd-mouse-manager.c b/plugins/mouse/gsd-mouse-manager.c
index 17a7219..1f68db1 100644
--- a/plugins/mouse/gsd-mouse-manager.c
+++ b/plugins/mouse/gsd-mouse-manager.c
@@ -327,6 +327,8 @@ set_left_handed (GsdMouseManager *manager,
         if (xdevice == NULL)
                 return;
 
+	g_debug ("setting handedness on %s", gdk_device_get_name (device));
+
         buttons = g_new (guchar, buttons_capacity);
 
         /* If the device is a touchpad, swap tap buttons
@@ -389,6 +391,8 @@ set_motion (GsdMouseManager *manager,
         if (xdevice == NULL)
                 return;
 
+	g_debug ("setting motion on %s", gdk_device_get_name (device));
+
         if (device_is_touchpad (xdevice))
                 settings = manager->priv->touchpad_settings;
         else
@@ -483,6 +487,8 @@ set_middle_button (GsdMouseManager *manager,
         if (xdevice == NULL)
                 return;
 
+	g_debug ("setting middle button on %s", gdk_device_get_name (device));
+
         gdk_error_trap_push ();
 
         rc = XGetDeviceProperty (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()),
@@ -607,6 +613,8 @@ set_tap_to_click (GdkDevice *device,
                 return;
         }
 
+	g_debug ("setting tap to click on %s", gdk_device_get_name (device));
+
         gdk_error_trap_push ();
         rc = XGetDeviceProperty (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), xdevice, prop, 0, 2,
                                  False, XA_INTEGER, &type, &format, &nitems,
@@ -656,6 +664,8 @@ set_horiz_scroll (GdkDevice *device,
                 return;
         }
 
+	g_debug ("setting horiz scroll on %s", gdk_device_get_name (device));
+
         gdk_error_trap_push ();
         rc = XGetDeviceProperty (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), xdevice,
                                  prop_edge, 0, 1, False,
@@ -719,6 +729,8 @@ set_edge_scroll (GdkDevice               *device,
                 return;
         }
 
+	g_debug ("setting edge scroll on %s", gdk_device_get_name (device));
+
         gdk_error_trap_push ();
         rc = XGetDeviceProperty (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), xdevice,
                                  prop_edge, 0, 1, False,
@@ -979,8 +991,6 @@ touchpad_callback (GSettings       *settings,
         for (l = devices; l != NULL; l = l->next) {
                 GdkDevice *device = l->data;
 
-                g_message ("checking on device %s", gdk_device_get_name (device));
-
                 if (device_is_blacklisted (manager, device))
                         return;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]