diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-05-22 19:41:52 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-05-22 19:41:52 +0200 |
commit | 99a79f7eb4e87cddbeb896501cb915a8a52fd505 (patch) | |
tree | 4447149837a6c6ab52f149de225799e528dd99a9 /include | |
parent | 498fadc735df509ef0a864db1e93d2120d8eb9ee (diff) |
Don't use g_ascii on utf8 string.
Diffstat (limited to 'include')
-rw-r--r-- | include/textbox.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/textbox.h b/include/textbox.h index 103898c6..455904f8 100644 --- a/include/textbox.h +++ b/include/textbox.h @@ -103,7 +103,15 @@ void textbox_text ( textbox *tb, const char *text ); void textbox_draw ( textbox *tb, cairo_t *draw ); int textbox_keybinding ( textbox *tb, KeyBindingAction action ); -gboolean textbox_append ( textbox *tb, char *pad, int pad_len ); +/** + * @param tb Handle to the textbox + * @param pad The text to insert + * @param pad_len the length of the text + * + * The text should be one insert from a keypress.. the first gunichar is validated to be (or not) control + * return TRUE if inserted + */ +gboolean textbox_append_char ( textbox *tb, char *pad, int pad_len ); /** * @param tb Handle to the textbox |