From 3fe85816af3f63e3ba61b6ae0ec8bd4f28da537a Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 25 Aug 2011 08:24:50 +0000 Subject: [PATCH] clouseau: Show the evas object name property if exists. SVN revision: 62786 --- TODO | 1 + src/lib/libclouseau.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/TODO b/TODO index 1c4dfb3..cdfa331 100644 --- a/TODO +++ b/TODO @@ -6,6 +6,7 @@ * When items are coloured, show the exact colour using a rect? * Handle map/proxy * Add an option to filter out invisible/clippers +* add a way to filter object with some regexp on the name and also finding a specific object according to name. * Things to show per-object * clipping info. diff --git a/src/lib/libclouseau.c b/src/lib/libclouseau.c index 721ecf8..9aa3d9a 100644 --- a/src/lib/libclouseau.c +++ b/src/lib/libclouseau.c @@ -192,6 +192,13 @@ _gl_selected(void *data __UNUSED__, Evas_Object *pobj __UNUSED__, snprintf(buf, sizeof(buf), "Visibility: %d", (int) visibility); elm_list_item_append(prop_list, buf, NULL, NULL, NULL, NULL); + if (evas_object_name_get(obj)) + { + snprintf(buf, sizeof(buf), "Name: %s", + evas_object_name_get(obj)); + elm_list_item_append(prop_list, buf, NULL, NULL, NULL, NULL); + } + snprintf(buf, sizeof(buf), "Layer: %hd", evas_object_layer_get(obj)); elm_list_item_append(prop_list, buf, NULL, NULL, NULL, NULL);