summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-07-22 08:16:33 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-07-22 08:16:33 +0300
commit6a5bf6357269694294ff79845c46190f3ce2b53d (patch)
tree268c4ac696062fa774ab4c59c0abd25342d52302 /src
parent7877d2adb715724593fc49c92d82b8e750e8b65c (diff)
InputWidget: Showing the hint text
Diffstat (limited to 'src')
-rw-r--r--src/ui/inputwidget.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c
index 3a774b89..3a979b20 100644
--- a/src/ui/inputwidget.c
+++ b/src/ui/inputwidget.c
@@ -769,9 +769,12 @@ void setContentPadding_InputWidget(iInputWidget *d, int left, int right) {
769 refresh_Widget(d); 769 refresh_Widget(d);
770} 770}
771 771
772iLocalDef iBool isEmpty_InputWidget_(const iInputWidget *d) {
773 return size_Array(&d->lines) == 1 && isEmpty_String(&line_InputWidget_(d, 0)->text);
774}
775
772static iBool isHintVisible_InputWidget_(const iInputWidget *d) { 776static iBool isHintVisible_InputWidget_(const iInputWidget *d) {
773 return !isEmpty_String(&d->hint) && isEmpty_Array(&d->lines);/* size_Array(&d->lines) <= 1 && 777 return !isEmpty_String(&d->hint) && isEmpty_InputWidget_(d);
774 isEmpty_String(&line_InputWidget_(d, 0)->text);*/
775} 778}
776 779
777static void updateBuffered_InputWidget_(iInputWidget *d) { 780static void updateBuffered_InputWidget_(iInputWidget *d) {