forked from enlightenment/terminology
win: when closing solo container, dissociate it from its parent
Ref T3509.
This commit is contained in:
parent
13c91324fa
commit
dfe57a25a7
|
@ -246,11 +246,19 @@ _solo_size_eval(Term_Container *container, Sizeinfo *info)
|
||||||
static void
|
static void
|
||||||
_solo_close(Term_Container *tc, Term_Container *child EINA_UNUSED)
|
_solo_close(Term_Container *tc, Term_Container *child EINA_UNUSED)
|
||||||
{
|
{
|
||||||
|
Solo *solo;
|
||||||
|
Term *term;
|
||||||
|
|
||||||
DBG("close");
|
DBG("close");
|
||||||
|
assert (tc->type == TERM_CONTAINER_TYPE_SOLO);
|
||||||
|
solo = (Solo*) tc;
|
||||||
tc->parent->close(tc->parent, tc);
|
tc->parent->close(tc->parent, tc);
|
||||||
|
|
||||||
eina_stringshare_del(tc->title);
|
eina_stringshare_del(tc->title);
|
||||||
|
|
||||||
|
term = solo->term;
|
||||||
|
term->container = NULL;
|
||||||
|
|
||||||
free(tc);
|
free(tc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue