Fix segfault when enabling debugging notes

This commit is contained in:
Emmanuele Bassi 2012-08-17 19:20:21 +01:00
parent b8a00aa881
commit aeb7c6926b

View File

@ -877,12 +877,11 @@ _clutter_input_device_update (ClutterInputDevice *device,
return NULL; return NULL;
CLUTTER_NOTE (EVENT, 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), clutter_input_device_get_device_id (device),
point.x, point.y, point.x,
clutter_actor_get_name (new_cursor_actor) != NULL point.y,
? clutter_actor_get_name (new_cursor_actor) _clutter_actor_get_debug_name (new_cursor_actor));
: G_OBJECT_TYPE_NAME (new_cursor_actor));
/* short-circuit here */ /* short-circuit here */
if (new_cursor_actor == old_cursor_actor) if (new_cursor_actor == old_cursor_actor)