[gnome-control-center] wacom: Add some more debug to the calibrator tool



commit 054538c292092fa59f1f345409915d273023881c
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Oct 4 11:15:46 2013 +0200

    wacom: Add some more debug to the calibrator tool

 panels/wacom/calibrator/calibrator.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/panels/wacom/calibrator/calibrator.c b/panels/wacom/calibrator/calibrator.c
index c597d79..a9acb49 100644
--- a/panels/wacom/calibrator/calibrator.c
+++ b/panels/wacom/calibrator/calibrator.c
@@ -51,6 +51,8 @@ add_click (struct Calib *c,
            int           x,
            int           y)
 {
+    g_debug ("Trying to add click (%d, %d)", x, y);
+
     /* Double-click detection */
     if (c->threshold_doubleclick > 0 && c->num_clicks > 0)
     {
@@ -60,6 +62,7 @@ add_click (struct Calib *c,
             if (abs(x - c->clicked_x[i]) <= c->threshold_doubleclick &&
                 abs(y - c->clicked_y[i]) <= c->threshold_doubleclick)
             {
+                g_debug ("Detected double-click, ignoring");
                 return FALSE;
             }
             i--;
@@ -105,11 +108,13 @@ add_click (struct Calib *c,
 
         if (misclick)
         {
+            g_debug ("Detected misclick, resetting");
             reset(c);
             return FALSE;
         }
     }
 
+    g_debug ("Click (%d, %d) added", x, y);
     c->clicked_x[c->num_clicks] = x;
     c->clicked_y[c->num_clicks] = y;
     c->num_clicks++;


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