From adbb0c972d515fc7a283dbb945d38ab7f7f2420a Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sun, 28 Aug 2011 09:46:40 +0000 Subject: [PATCH] clouseau: Added "pass_events". SVN revision: 62911 --- TODO | 1 + src/lib/ui/obj_information.c | 7 +++++++ src/lib/ui/obj_information.h | 1 + 3 files changed, 9 insertions(+) diff --git a/TODO b/TODO index 93725a1..45b9abb 100644 --- a/TODO +++ b/TODO @@ -14,3 +14,4 @@ * EET uses malloc, not stringshare, change stringshare -> strdup * Fix has_focus. +* Hook on feed events or something and let us see who gets what? diff --git a/src/lib/ui/obj_information.c b/src/lib/ui/obj_information.c index d8e8557..a4a84d0 100644 --- a/src/lib/ui/obj_information.c +++ b/src/lib/ui/obj_information.c @@ -159,6 +159,7 @@ _obj_information_get(Tree_Item *treeit) Evas_Object *obj = treeit->ptr; oinfo = calloc(1, sizeof(*oinfo)); + oinfo->evas_props.pass_events = evas_object_pass_events_get(obj); oinfo->evas_props.has_focus = evas_object_focus_get(obj); oinfo->evas_props.is_visible = evas_object_visible_get(obj); oinfo->evas_props.name = eina_stringshare_add(evas_object_name_get(obj)); @@ -372,6 +373,12 @@ clouseau_obj_information_list_populate(Tree_Item *treeit) tit->string = eina_stringshare_add(buf); main_tit->children = eina_list_append(main_tit->children, tit); + snprintf(buf, sizeof(buf), "Pass events: %d", + (int) oinfo->evas_props.pass_events); + tit = calloc(1, sizeof(*tit)); + tit->string = eina_stringshare_add(buf); + main_tit->children = eina_list_append(main_tit->children, tit); + if (oinfo->evas_props.is_clipper) { snprintf(buf, sizeof(buf), "Has clipees"); diff --git a/src/lib/ui/obj_information.h b/src/lib/ui/obj_information.h index 93eb43c..756e97c 100644 --- a/src/lib/ui/obj_information.h +++ b/src/lib/ui/obj_information.h @@ -15,6 +15,7 @@ struct _Obj_Information double align_x, align_y; double weight_x, weight_y; int r, g, b, a; + Eina_Bool pass_events; Eina_Bool has_focus; Eina_Bool is_clipper; Eina_Bool is_visible;