summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2013-08-28 17:30:06 +0200
committerBoris Faure <billiob@gmail.com>2013-08-28 17:30:06 +0200
commiteea7862f5229e211e4d1a30f20e9b01a563ed9de (patch)
tree281f12105eeb726b9eee82d22e7a82d698cb5b4d
parent441f2ef39e7f9912cfa1002e84e7d809368c5a0c (diff)
doc + use !strcmp to make code more readable
-rw-r--r--src/bin/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 92d6910..1dc85a7 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -493,8 +493,10 @@ _split_merge(Split *spp, Split *sp, const char *slot)
493 spp->s2->parent = spp; 493 spp->s2->parent = spp;
494 spp->horizontal = sp->horizontal; 494 spp->horizontal = sp->horizontal;
495 o = sp->panes; 495 o = sp->panes;
496 /* slot is the empty part. the part that needs to be unset is the
497 * other one */
496 elm_object_part_content_unset(sp->parent->panes, 498 elm_object_part_content_unset(sp->parent->panes,
497 (strcmp(slot, PANES_TOP)) ? PANES_TOP : PANES_BOTTOM); 499 (!strcmp(slot, PANES_TOP)) ? PANES_BOTTOM : PANES_TOP);
498 if (spp->parent) 500 if (spp->parent)
499 { 501 {
500 elm_object_part_content_unset(spp->parent->panes, slot); 502 elm_object_part_content_unset(spp->parent->panes, slot);