aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-07-27 15:33:22 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-04 10:24:03 +0900
commit1990104b5f351ad40367d46a99374cb0ca8234df (patch)
treec017d3cabbc86962139c52eb4babef353a1bf5f0
parentevas: Add debug_name to image objects (diff)
downloadefl-1990104b5f351ad40367d46a99374cb0ca8234df.tar.gz
evas: More debug_name information
-rw-r--r--src/lib/evas/canvas/evas_name.c7
-rw-r--r--src/lib/evas/canvas/evas_object_smart.c9
2 files changed, 15 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_name.c b/src/lib/evas/canvas/evas_name.c
index 8f26e5c2c5..b02e4a7a94 100644
--- a/src/lib/evas/canvas/evas_name.c
+++ b/src/lib/evas/canvas/evas_name.c
@@ -79,6 +79,13 @@ _efl_canvas_object_efl_object_debug_name_override(Eo *eo_obj, Evas_Object_Protec
eina_strbuf_append_printf(sb, "%s%s:(%d,%d %dx%d)", norend, clip,
obj->cur->geometry.x, obj->cur->geometry.y,
obj->cur->geometry.w, obj->cur->geometry.h);
+ if ((obj->cur->color.r != 255) || (obj->cur->color.g != 255) ||
+ (obj->cur->color.b != 255) || (obj->cur->color.a != 255))
+ {
+ eina_strbuf_append_printf(sb, ":rgba(%d,%d,%d,%d)",
+ obj->cur->color.r, obj->cur->color.g,
+ obj->cur->color.b, obj->cur->color.a);
+ }
}
else
{
diff --git a/src/lib/evas/canvas/evas_object_smart.c b/src/lib/evas/canvas/evas_object_smart.c
index 55dc84d497..98ef3a3403 100644
--- a/src/lib/evas/canvas/evas_object_smart.c
+++ b/src/lib/evas/canvas/evas_object_smart.c
@@ -650,8 +650,15 @@ _efl_canvas_group_efl_object_destructor(Eo *eo_obj, Evas_Smart_Data *o)
EOLIAN static Eina_Strbuf *
_efl_canvas_group_efl_object_debug_name_override(Eo *eo_obj, Evas_Smart_Data *o, Eina_Strbuf *sb)
{
+ Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
+ const char *smart_class = NULL;
+
+ if (obj->smart.smart && obj->smart.smart->smart_class)
+ smart_class = obj->smart.smart->smart_class->name;
+
sb = efl_debug_name_override(efl_super(eo_obj, MY_CLASS), sb);
- eina_strbuf_append_printf(sb, ":children=%d", eina_inlist_count(o->contained));
+ eina_strbuf_append_printf(sb, ":children=%d:smart_class=%s",
+ eina_inlist_count(o->contained), smart_class);
return sb;
}