diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/inputwidget.c | 4 | ||||
-rw-r--r-- | src/ui/inputwidget.h | 8 |
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 | ||
106 | void setHint_InputWidget(iInputWidget *d, const iString *hintText) { | 106 | void setHint_InputWidget(iInputWidget *d, const char *hintText) { |
107 | set_String(&d->hint, hintText); | 107 | setCStr_String(&d->hint, hintText); |
108 | } | 108 | } |
109 | 109 | ||
110 | void setText_InputWidget(iInputWidget *d, const iString *text) { | 110 | void 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 | ||
35 | void setHint_InputWidget (iInputWidget *, const iString *hintText); | 35 | void setHint_InputWidget (iInputWidget *, const char *hintText); |
36 | void setSensitive_InputWidget(iInputWidget *, iBool isSensitive); | 36 | void setSensitive_InputWidget(iInputWidget *, iBool isSensitive); |
37 | void setMode_InputWidget (iInputWidget *, enum iInputMode mode); | 37 | void setMode_InputWidget (iInputWidget *, enum iInputMode mode); |
38 | void setMaxLen_InputWidget (iInputWidget *, size_t maxLen); | 38 | void setMaxLen_InputWidget (iInputWidget *, size_t maxLen); |
@@ -43,3 +43,9 @@ void begin_InputWidget (iInputWidget *); | |||
43 | void end_InputWidget (iInputWidget *, iBool accept); | 43 | void end_InputWidget (iInputWidget *, iBool accept); |
44 | 44 | ||
45 | const iString * text_InputWidget (const iInputWidget *); | 45 | const iString * text_InputWidget (const iInputWidget *); |
46 | |||
47 | iLocalDef iInputWidget *newHint_InputWidget(size_t maxLen, const char *hint) { | ||
48 | iInputWidget *d = new_InputWidget(maxLen); | ||
49 | setHint_InputWidget(d, hint); | ||
50 | return d; | ||
51 | } | ||