[gnome-control-center] wacom: Remove private function from header



commit d00e7ee0bd36a9b2b888b6411899dc31dd1cfdb7
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jan 11 11:59:14 2012 +0000

    wacom: Remove private function from header

 panels/wacom/calibrator/calibrator.c |   22 +++++++++++-----------
 panels/wacom/calibrator/calibrator.h |    4 ----
 2 files changed, 11 insertions(+), 15 deletions(-)
---
diff --git a/panels/wacom/calibrator/calibrator.c b/panels/wacom/calibrator/calibrator.c
index 45fdf3c..a907a29 100644
--- a/panels/wacom/calibrator/calibrator.c
+++ b/panels/wacom/calibrator/calibrator.c
@@ -34,6 +34,17 @@ reset (struct Calib *c)
     c->num_clicks = 0;
 }
 
+/* check whether the coordinates are along the respective axis */
+static gboolean
+along_axis (struct Calib *c,
+            int           xy,
+            int           x0,
+            int           y0)
+{
+    return ((abs(xy - x0) <= c->threshold_misclick) ||
+            (abs(xy - y0) <= c->threshold_misclick));
+}
+
 /* add a click with the given coordinates */
 gboolean
 add_click (struct Calib *c,
@@ -106,17 +117,6 @@ add_click (struct Calib *c,
     return TRUE;
 }
 
-/* check whether the coordinates are along the respective axis */
-gboolean
-along_axis (struct Calib *c,
-            int           xy,
-            int           x0,
-            int           y0)
-{
-    return ((abs(xy - x0) <= c->threshold_misclick) ||
-            (abs(xy - y0) <= c->threshold_misclick));
-}
-
 /* calculate and apply the calibration */
 gboolean
 finish (struct Calib *c,
diff --git a/panels/wacom/calibrator/calibrator.h b/panels/wacom/calibrator/calibrator.h
index 4241366..3ff9b50 100644
--- a/panels/wacom/calibrator/calibrator.h
+++ b/panels/wacom/calibrator/calibrator.h
@@ -102,10 +102,6 @@ void reset      (struct Calib *c);
 gboolean add_click  (struct Calib *c,
                  int           x,
                  int           y);
-gboolean along_axis (struct Calib *c,
-                 int           xy,
-                 int           x0,
-                 int           y0);
 gboolean finish     (struct Calib *c,
                  int           width,
                  int           height,



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