doc + use !strcmp to make code more readable

This commit is contained in:
Boris Faure 2013-08-28 17:30:06 +02:00
parent 441f2ef39e
commit eea7862f52
1 changed files with 3 additions and 1 deletions

View File

@ -493,8 +493,10 @@ _split_merge(Split *spp, Split *sp, const char *slot)
spp->s2->parent = spp;
spp->horizontal = sp->horizontal;
o = sp->panes;
/* slot is the empty part. the part that needs to be unset is the
* other one */
elm_object_part_content_unset(sp->parent->panes,
(strcmp(slot, PANES_TOP)) ? PANES_TOP : PANES_BOTTOM);
(!strcmp(slot, PANES_TOP)) ? PANES_BOTTOM : PANES_TOP);
if (spp->parent)
{
elm_object_part_content_unset(spp->parent->panes, slot);