[clutter] Fix segfault when enabling debugging notes



commit aeb7c6926b1ca05601b4adc3cfadd9d21ebbe183
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Fri Aug 17 19:20:21 2012 +0100

    Fix segfault when enabling debugging notes

 clutter/clutter-input-device.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/clutter/clutter-input-device.c b/clutter/clutter-input-device.c
index f4d137a..0917dad 100644
--- a/clutter/clutter-input-device.c
+++ b/clutter/clutter-input-device.c
@@ -877,12 +877,11 @@ _clutter_input_device_update (ClutterInputDevice   *device,
     return NULL;
 
   CLUTTER_NOTE (EVENT,
-                "Actor under cursor (device %d, at %d, %d): %s",
+                "Actor under cursor (device %d, at %.2f, %.2f): %s",
                 clutter_input_device_get_device_id (device),
-                point.x, point.y,
-                clutter_actor_get_name (new_cursor_actor) != NULL
-                  ? clutter_actor_get_name (new_cursor_actor)
-                  : G_OBJECT_TYPE_NAME (new_cursor_actor));
+                point.x,
+                point.y,
+                _clutter_actor_get_debug_name (new_cursor_actor));
 
   /* short-circuit here */
   if (new_cursor_actor == old_cursor_actor)



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