diff options
author | Camil Staps | 2019-10-22 21:55:49 +0200 |
---|---|---|
committer | Camil Staps | 2019-10-22 21:58:18 +0200 |
commit | 4361daded9afcd93addf8222f4b6fa9b42de1c97 (patch) | |
tree | 92a7e5535d9b89a27dc331d5cc64fc0171ff8683 /src/Gtk/Internal.icl | |
parent | Add custom GtkM state monad with a bind that does not grow the stack (diff) |
Add setText for TextBuffer
Diffstat (limited to 'src/Gtk/Internal.icl')
-rw-r--r-- | src/Gtk/Internal.icl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Gtk/Internal.icl b/src/Gtk/Internal.icl index 787a2c9..988ab3a 100644 --- a/src/Gtk/Internal.icl +++ b/src/Gtk/Internal.icl @@ -282,6 +282,11 @@ gtk_text_buffer_insert_at_cursor buffer string len env = code { ccall gtk_text_buffer_insert_at_cursor "psI:V:A" } +gtk_text_buffer_set_text :: !Pointer !String !Int !.a -> .a +gtk_text_buffer_set_text buffer string len env = code { + ccall gtk_text_buffer_set_text "psI:V:A" +} + gtk_text_view_new :: !.a -> (!Pointer, !.a) gtk_text_view_new env = code { ccall gtk_text_view_new ":p:A" |