diff options
author | Nathan Scott <nathans@redhat.com> | 2020-08-26 10:15:00 +1000 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2020-08-26 10:39:43 +1000 |
commit | 728b04bbb5667291f1e56058240fcd7e03cbfe74 (patch) | |
tree | ad199ce3a3303e723eb9332aa6cb847b9530084a /CheckItem.c | |
parent | d0f31ede5624ed2f35ca25043f6a28adfe3bc171 (diff) |
Merge branch 'ci-hwloc-job' of https://github.com/bertwesarg/htop into bertwesarg-ci-hwloc-job
Diffstat (limited to 'CheckItem.c')
-rw-r--r-- | CheckItem.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/CheckItem.c b/CheckItem.c index 910981e8..a045d2ff 100644 --- a/CheckItem.c +++ b/CheckItem.c @@ -35,12 +35,11 @@ static void CheckItem_delete(Object* cast) { static void CheckItem_display(Object* cast, RichString* out) { CheckItem* this = (CheckItem*)cast; assert (this != NULL); - RichString_write(out, CRT_colors[CHECK_BOX], "["); if (CheckItem_get(this)) - RichString_append(out, CRT_colors[CHECK_MARK], "x"); + RichString_append(out, CRT_colors[CHECK_MARK], CRT_checkStr[CHECK_STR_FULL]); else - RichString_append(out, CRT_colors[CHECK_MARK], " "); - RichString_append(out, CRT_colors[CHECK_BOX], "] "); + RichString_append(out, CRT_colors[CHECK_MARK], CRT_checkStr[CHECK_STR_NONE]); + RichString_append(out, CRT_colors[CHECK_TEXT], " "); RichString_append(out, CRT_colors[CHECK_TEXT], this->text); } |