[clutter] events: Fix and improve some touch events debug notes



commit f57fc569d29abc683ae1ca639244dcb74baca360
Author: Emanuele Aina <emanuele aina collabora com>
Date:   Tue Nov 20 17:37:53 2012 +0100

    events: Fix and improve some touch events debug notes

 clutter/clutter-main.c |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c
index 6692df1..30d3060 100644
--- a/clutter/clutter-main.c
+++ b/clutter/clutter-main.c
@@ -2706,9 +2706,9 @@ _clutter_process_event_details (ClutterActor        *stage,
                 {
                   CLUTTER_NOTE (EVENT,
                                 "Touch %s off stage received at %.2f, %.2f",
-                                event->type == CLUTTER_TOUCH_UPDATE ? "Touch update" :
-                                event->type == CLUTTER_TOUCH_END ? "Touch end" :
-                                event->type == CLUTTER_TOUCH_CANCEL ? "Touch cancel" :
+                                event->type == CLUTTER_TOUCH_UPDATE ? "update" :
+                                event->type == CLUTTER_TOUCH_END ? "end" :
+                                event->type == CLUTTER_TOUCH_CANCEL ? "cancel" :
                                 "?", x, y);
 
                   event->touch.source = stage;
@@ -2724,9 +2724,13 @@ _clutter_process_event_details (ClutterActor        *stage,
               if (device != NULL)
                 actor = _clutter_input_device_update (device, sequence, TRUE);
               else
-                actor = _clutter_stage_do_pick (CLUTTER_STAGE (stage),
-                                                x, y,
-                                                CLUTTER_PICK_REACTIVE);
+                {
+                  CLUTTER_NOTE (EVENT, "No device found: picking");
+
+                  actor = _clutter_stage_do_pick (CLUTTER_STAGE (stage),
+                                                  x, y,
+                                                  CLUTTER_PICK_REACTIVE);
+                }
 
               if (actor == NULL)
                 break;
@@ -2784,7 +2788,7 @@ _clutter_process_event (ClutterEvent *event)
   stage = CLUTTER_ACTOR (event->any.stage);
   if (stage == NULL)
     {
-      CLUTTER_NOTE (EVENT, "Discarding event withou a stage set");
+      CLUTTER_NOTE (EVENT, "Discarding event without a stage set");
       return;
     }
 



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