summaryrefslogtreecommitdiff
path: root/src/ui/root.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-07-20 09:01:25 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-07-20 09:01:25 +0300
commitdc1528e89d48947780e00fc1a49ce57cccdfbfe5 (patch)
tree4bd888f70dcf7bdd3ad166b43176232c42920594 /src/ui/root.c
parent3ccdfae64b82d9716de1f94f7d81de9c8765b607 (diff)
Revising InputWidget
`InputWidget` needs to be better at handling multiple lines. The previous implementation assumed that the content was short enough to be fully redrawn each frame, which is not a great idea when you have thousands of lines.
Diffstat (limited to 'src/ui/root.c')
-rw-r--r--src/ui/root.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/root.c b/src/ui/root.c
index 91077019..9d92c44e 100644
--- a/src/ui/root.c
+++ b/src/ui/root.c
@@ -1076,7 +1076,7 @@ void createUserInterface_Root(iRoot *d) {
1076 setFlags_Widget(as_Widget(url), resizeHeightOfChildren_WidgetFlag, iTrue); 1076 setFlags_Widget(as_Widget(url), resizeHeightOfChildren_WidgetFlag, iTrue);
1077 setSelectAllOnFocus_InputWidget(url, iTrue); 1077 setSelectAllOnFocus_InputWidget(url, iTrue);
1078 setId_Widget(as_Widget(url), "url"); 1078 setId_Widget(as_Widget(url), "url");
1079 setMaxLayoutLines_InputWidget(url, 1); 1079 setLineLimits_InputWidget(url, 1, 1); /* just one line while not focused */
1080 setUrlContent_InputWidget(url, iTrue); 1080 setUrlContent_InputWidget(url, iTrue);
1081 setNotifyEdits_InputWidget(url, iTrue); 1081 setNotifyEdits_InputWidget(url, iTrue);
1082 setTextCStr_InputWidget(url, "gemini://"); 1082 setTextCStr_InputWidget(url, "gemini://");