eet: set parent struct member when adding a child to a parent node

Summary:
this relation can be retrieved with eet_node_parent_get() but is never
set internally

fix T4600

@fix

Reviewers: artem.popov, devilhorns, Hermet, vtorri

Reviewed By: Hermet

Subscribers: Hermet, cedric, #committers

Tags: #efl

Maniphest Tasks: T4600

Differential Revision: https://phab.enlightenment.org/D6336
This commit is contained in:
Mike Blumenkrantz 2018-06-29 11:36:12 -04:00
parent d2e631586c
commit 8f7170bfad
1 changed files with 4 additions and 0 deletions

View File

@ -275,6 +275,7 @@ eet_node_list_append(Eet_Node *parent,
}
child->next = NULL;
child->parent = parent;
eina_stringshare_del(tmp);
@ -287,6 +288,7 @@ eet_node_list_append(Eet_Node *parent,
/* And add it to the parent. */
nn->next = parent->values;
parent->values = nn;
child->parent = parent;
eina_stringshare_del(tmp);
}
@ -336,6 +338,7 @@ eet_node_struct_append(Eet_Node *parent,
child->next = NULL;
parent->values = child;
}
child->parent = parent;
eina_stringshare_del(tmp);
}
@ -356,6 +359,7 @@ eet_node_hash_add(Eet_Node *parent,
/* And add it to the parent. */
nn->next = parent->values;
parent->values = nn;
child->parent = parent;
}
int