diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-23 16:03:08 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-23 16:03:08 +0300 |
commit | df0ce23f3942892f8368d5f8a5aa2eac762c9b68 (patch) | |
tree | 5aba7017e73ceabe2a90d5cb05aa184c21458661 /src/ui/inputwidget.c | |
parent | a624d11136f16b5799abecda2433c49500094b9b (diff) |
Added a basic navigation bar with buttons and URL field
Not wired into anything yet.
Diffstat (limited to 'src/ui/inputwidget.c')
-rw-r--r-- | src/ui/inputwidget.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c index 7a2b7d1c..1a692907 100644 --- a/src/ui/inputwidget.c +++ b/src/ui/inputwidget.c | |||
@@ -70,6 +70,12 @@ void setText_InputWidget(iInputWidget *d, const iString *text) { | |||
70 | } | 70 | } |
71 | } | 71 | } |
72 | 72 | ||
73 | void setTextCStr_InputWidget(iInputWidget *d, const char *cstr) { | ||
74 | iString *str = newCStr_String(cstr); | ||
75 | setText_InputWidget(d, str); | ||
76 | delete_String(str); | ||
77 | } | ||
78 | |||
73 | void setCursor_InputWidget(iInputWidget *d, size_t pos) { | 79 | void setCursor_InputWidget(iInputWidget *d, size_t pos) { |
74 | d->cursor = iMin(pos, size_Array(&d->text)); | 80 | d->cursor = iMin(pos, size_Array(&d->text)); |
75 | } | 81 | } |