[gnome-control-center] wacom: Avoid confusing debug message



commit da3080d9109082f82b105f354e4205aca62c5362
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jan 11 19:26:58 2012 +0000

    wacom: Avoid confusing debug message
    
    Don't print bogus values if the calibration didn't finish

 panels/wacom/calibrator/gui_gtk.c |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/panels/wacom/calibrator/gui_gtk.c b/panels/wacom/calibrator/gui_gtk.c
index 05a44a2..e1b82b6 100644
--- a/panels/wacom/calibrator/gui_gtk.c
+++ b/panels/wacom/calibrator/gui_gtk.c
@@ -414,11 +414,14 @@ run_gui(struct Calib *c,
 
     g_free (calib_area);
 
-    g_debug ("Final calibration: %d, %d, %d, %d\n",
-	     new_axis->x_min,
-	     new_axis->y_min,
-	     new_axis->x_max,
-	     new_axis->y_max);
+    if (success)
+	    g_debug ("Final calibration: %d, %d, %d, %d\n",
+		     new_axis->x_min,
+		     new_axis->y_min,
+		     new_axis->x_max,
+		     new_axis->y_max);
+    else
+	    g_debug ("Calibration was aborted or timed out");
 
    return success;
 }



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