summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/inputwidget.c1
-rw-r--r--src/ui/window.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c
index 22b30616..e23e5acc 100644
--- a/src/ui/inputwidget.c
+++ b/src/ui/inputwidget.c
@@ -311,6 +311,7 @@ static void draw_InputWidget_(const iInputWidget *d) {
311 add_I2(topLeft_Rect(bounds), 311 add_I2(topLeft_Rect(bounds),
312 init_I2(xOff, yOff)), 312 init_I2(xOff, yOff)),
313 white_ColorId, 313 white_ColorId,
314 "%s",
314 cstr_String(&text)); 315 cstr_String(&text));
315 clearClip_Paint(&p); 316 clearClip_Paint(&p);
316 /* Cursor blinking. */ 317 /* Cursor blinking. */
diff --git a/src/ui/window.c b/src/ui/window.c
index 896b1e66..e08f6d6c 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -78,7 +78,9 @@ static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) {
78 if (equal_Command(cmd, "input.ended")) { 78 if (equal_Command(cmd, "input.ended")) {
79 iInputWidget *url = findChild_Widget(navBar, "url"); 79 iInputWidget *url = findChild_Widget(navBar, "url");
80 if (arg_Command(cmd) && pointer_Command(cmd) == url) { 80 if (arg_Command(cmd) && pointer_Command(cmd) == url) {
81 postCommandf_App("open url:%s", cstr_String(text_InputWidget(url))); 81 postCommandf_App(
82 "open url:%s",
83 cstr_String(text_InputWidget(url)));
82 return iTrue; 84 return iTrue;
83 } 85 }
84 } 86 }