summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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) {