From 5d11130dad9bb272ed6b429be315a10af84b0ca8 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 17 Apr 2013 08:36:54 +0100 Subject: [PATCH] size debugging now also prints object names when available --- src/bin/e_utils.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bin/e_utils.c b/src/bin/e_utils.c index 93b7ed5..d1420bc 100644 --- a/src/bin/e_utils.c +++ b/src/bin/e_utils.c @@ -1326,18 +1326,22 @@ static void _e_util_size_debug_del(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) { int x, y, w, h; + const char *name; evas_object_geometry_get(obj, &x, &y, &w, &h); - fprintf(stderr, "DEL %s OBJ[%p]: (%d,%d) - %dx%d\n", evas_object_visible_get(obj) ? "VIS" : "HID", obj, x, y, w, h); + name = evas_object_name_get(obj); + fprintf(stderr, "DEL %s OBJ[%s%s%p]: (%d,%d) - %dx%d\n", evas_object_visible_get(obj) ? "VIS" : "HID", name ?: "", name ? "|" : "", obj, x, y, w, h); } static void _e_util_size_debug(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__) { int x, y, w, h; + const char *name; evas_object_geometry_get(obj, &x, &y, &w, &h); - fprintf(stderr, "%s OBJ[%p]: (%d,%d) - %dx%d\n", evas_object_visible_get(obj) ? "VIS" : "HID", obj, x, y, w, h); + name = evas_object_name_get(obj); + fprintf(stderr, "%s OBJ[%s%s%p]: (%d,%d) - %dx%d\n", evas_object_visible_get(obj) ? "VIS" : "HID", name ?: "", name ? "|" : "", obj, x, y, w, h); } EAPI void -- 2.7.4