clouseau: No need to keep a ptr to the parent.
SVN revision: 62826
This commit is contained in:
parent
4f8c6c3668
commit
2d4622b2c5
|
@ -205,7 +205,7 @@ libclouseau_item_add(Evas_Object *o, Evas_Object *gl, Tree_Item *parent)
|
|||
|
||||
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),
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -252,7 +252,7 @@ clouseau_obj_information_list_populate(Tree_Item *treeit)
|
|||
{
|
||||
clouseau_obj_information_list_clear();
|
||||
|
||||
if (!treeit->parent)
|
||||
if (!treeit->is_obj)
|
||||
return;
|
||||
|
||||
Inf_Tree_Item *main_tit;
|
||||
|
|
Loading…
Reference in New Issue