From: Enlightenment S. <no-...@en...> - 2011-08-25 14:54:36
|
Log: clouseau: No need to keep a ptr to the parent. Author: tasn Date: 2011-08-25 07:54:30 -0700 (Thu, 25 Aug 2011) New Revision: 62826 Trac: http://trac.enlightenment.org/e/changeset/62826 Modified: trunk/clouseau/src/lib/libclouseau.c trunk/clouseau/src/lib/libclouseau.h trunk/clouseau/src/lib/ui/obj_information.c Modified: trunk/clouseau/src/lib/libclouseau.c =================================================================== --- trunk/clouseau/src/lib/libclouseau.c 2011-08-25 14:54:27 UTC (rev 62825) +++ trunk/clouseau/src/lib/libclouseau.c 2011-08-25 14:54:30 UTC (rev 62826) @@ -205,7 +205,7 @@ treeit = calloc(1, sizeof(*treeit)); treeit->ptr = o; - treeit->parent = parent; + treeit->is_obj = EINA_TRUE; if (elm_widget_is(o)) { snprintf(buf, sizeof(buf), "%p %s: %s", o, evas_object_type_get(o), Modified: trunk/clouseau/src/lib/libclouseau.h =================================================================== --- trunk/clouseau/src/lib/libclouseau.h 2011-08-25 14:54:27 UTC (rev 62825) +++ trunk/clouseau/src/lib/libclouseau.h 2011-08-25 14:54:30 UTC (rev 62826) @@ -19,10 +19,10 @@ typedef struct _Tree_Item Tree_Item; struct _Tree_Item { - Tree_Item *parent; Eina_List *children; const char *name; void *ptr; + Eina_Bool is_obj : 1; Eina_Bool is_clipper : 1; Eina_Bool is_visible : 1; }; Modified: trunk/clouseau/src/lib/ui/obj_information.c =================================================================== --- trunk/clouseau/src/lib/ui/obj_information.c 2011-08-25 14:54:27 UTC (rev 62825) +++ trunk/clouseau/src/lib/ui/obj_information.c 2011-08-25 14:54:30 UTC (rev 62826) @@ -252,7 +252,7 @@ { clouseau_obj_information_list_clear(); - if (!treeit->parent) + if (!treeit->is_obj) return; Inf_Tree_Item *main_tit; |