From aeb7c6926b1ca05601b4adc3cfadd9d21ebbe183 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 17 Aug 2012 19:20:21 +0100 Subject: [PATCH] Fix segfault when enabling debugging notes --- clutter/clutter-input-device.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/clutter/clutter-input-device.c b/clutter/clutter-input-device.c index f4d137a53..0917dad79 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)