--- a/demo/talkatudemowindow.c Thu May 07 23:13:36 2020 -0500
+++ b/demo/talkatudemowindow.c Thu May 07 23:27:49 2020 -0500
@@ -159,14 +159,20 @@
talkatu_demo_window_buffer_modified_cb(GtkTextBuffer *buffer, gpointer data) {
TalkatuDemoWindow *window = TALKATU_DEMO_WINDOW(data);
+ GtkWidget *input = talkatu_editor_get_input(TALKATU_EDITOR(window->editor)); + author = talkatu_message_get_author(TALKATU_MESSAGE(input)); if(gtk_text_buffer_get_char_count(buffer) > 0) {
talkatu_typing_label_start_typing(TALKATU_TYPING_LABEL(window->typing),
talkatu_typing_label_finish_typing(TALKATU_TYPING_LABEL(window->typing),
--- a/talkatu/talkatuinput.c Thu May 07 23:13:36 2020 -0500
+++ b/talkatu/talkatuinput.c Thu May 07 23:27:49 2020 -0500
@@ -382,13 +382,13 @@
priv->context_mark = gtk_text_buffer_create_mark(buffer, NULL, &start, TRUE);
if(TALKATU_IS_BUFFER(buffer)) {
- TalkatuActionGroup *ag = NULL;
+ GSimpleActionGroup *ag = NULL; ag = talkatu_buffer_get_action_group(TALKATU_BUFFER(buffer));
if(TALKATU_IS_ACTION_GROUP(ag)) {
/* Tell the action group of the buffer that we exist. */
- talkatu_action_group_set_input(ag, input);
+ talkatu_action_group_set_input(TALKATU_ACTION_GROUP(ag), input);