summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/inputwidget.c4
-rw-r--r--src/ui/inputwidget.h8
2 files changed, 9 insertions, 3 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c
index e34e861c..8e9f0423 100644
--- a/src/ui/inputwidget.c
+++ b/src/ui/inputwidget.c
@@ -103,8 +103,8 @@ void setMaxLen_InputWidget(iInputWidget *d, size_t maxLen) {
103 } 103 }
104} 104}
105 105
106void setHint_InputWidget(iInputWidget *d, const iString *hintText) { 106void setHint_InputWidget(iInputWidget *d, const char *hintText) {
107 set_String(&d->hint, hintText); 107 setCStr_String(&d->hint, hintText);
108} 108}
109 109
110void setText_InputWidget(iInputWidget *d, const iString *text) { 110void setText_InputWidget(iInputWidget *d, const iString *text) {
diff --git a/src/ui/inputwidget.h b/src/ui/inputwidget.h
index 825d0118..01f4efc3 100644
--- a/src/ui/inputwidget.h
+++ b/src/ui/inputwidget.h
@@ -32,7 +32,7 @@ enum iInputMode {
32 overwrite_InputMode, 32 overwrite_InputMode,
33}; 33};
34 34
35void setHint_InputWidget (iInputWidget *, const iString *hintText); 35void setHint_InputWidget (iInputWidget *, const char *hintText);
36void setSensitive_InputWidget(iInputWidget *, iBool isSensitive); 36void setSensitive_InputWidget(iInputWidget *, iBool isSensitive);
37void setMode_InputWidget (iInputWidget *, enum iInputMode mode); 37void setMode_InputWidget (iInputWidget *, enum iInputMode mode);
38void setMaxLen_InputWidget (iInputWidget *, size_t maxLen); 38void setMaxLen_InputWidget (iInputWidget *, size_t maxLen);
@@ -43,3 +43,9 @@ void begin_InputWidget (iInputWidget *);
43void end_InputWidget (iInputWidget *, iBool accept); 43void end_InputWidget (iInputWidget *, iBool accept);
44 44
45const iString * text_InputWidget (const iInputWidget *); 45const iString * text_InputWidget (const iInputWidget *);
46
47iLocalDef iInputWidget *newHint_InputWidget(size_t maxLen, const char *hint) {
48 iInputWidget *d = new_InputWidget(maxLen);
49 setHint_InputWidget(d, hint);
50 return d;
51}