summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-22 18:51:15 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-22 18:51:15 +0300
commitfb627f1ae471ae2fe966cbd98f2e58f1c8d2e742 (patch)
treec25d769d1107a0f5217e48f360da14ccb6481807
parentb841043875e315418749bf2d423d324df0918364 (diff)
Util: Wrap value input prompt
-rw-r--r--src/ui/util.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ui/util.c b/src/ui/util.c
index 994f4671..7af9ca8b 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -1708,9 +1708,12 @@ iWidget *makeValueInput_Widget(iWidget *parent, const iString *initialValue, con
1708 setId_Widget( 1708 setId_Widget(
1709 addChildFlags_Widget(dlg, iClob(new_LabelWidget(title, NULL)), frameless_WidgetFlag), 1709 addChildFlags_Widget(dlg, iClob(new_LabelWidget(title, NULL)), frameless_WidgetFlag),
1710 "valueinput.title"); 1710 "valueinput.title");
1711 setId_Widget( 1711 iLabelWidget *promptLabel;
1712 addChildFlags_Widget(dlg, iClob(new_LabelWidget(prompt, NULL)), frameless_WidgetFlag), 1712 setId_Widget(addChildFlags_Widget(
1713 "valueinput.prompt"); 1713 dlg, iClob(promptLabel = new_LabelWidget(prompt, NULL)), frameless_WidgetFlag
1714 | resizeToParentWidth_WidgetFlag | fixedHeight_WidgetFlag),
1715 "valueinput.prompt");
1716 setWrap_LabelWidget(promptLabel, iTrue);
1714 iInputWidget *input = addChildFlags_Widget(dlg, iClob(new_InputWidget(0)), 1717 iInputWidget *input = addChildFlags_Widget(dlg, iClob(new_InputWidget(0)),
1715 resizeToParentWidth_WidgetFlag); 1718 resizeToParentWidth_WidgetFlag);
1716 setContentPadding_InputWidget(input, 0.5f * gap_UI, 0.5f * gap_UI); 1719 setContentPadding_InputWidget(input, 0.5f * gap_UI, 0.5f * gap_UI);