From: Marijn van Vliet Date: Tue, 25 Oct 2011 14:08:56 +0000 (+0200) Subject: Fixed some omitted applications of default and glk-input tags X-Git-Tag: v0.9~57 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=7d92dddcf2eb2ab47092d0b17c06611716601f39;p=projects%2Fchimara%2Fchimara.git Fixed some omitted applications of default and glk-input tags --- diff --git a/libchimara/input.c b/libchimara/input.c index bb9b9d1..7f9b693 100644 --- a/libchimara/input.c +++ b/libchimara/input.c @@ -783,7 +783,9 @@ after_window_insert_text(GtkTextBuffer *textbuffer, GtkTextIter *location, gchar GtkTextIter input_iter; GtkTextMark *input_position = gtk_text_buffer_get_mark(window_buffer, "input_position"); gtk_text_buffer_get_iter_at_mark(window_buffer, &input_iter, input_position); + gtk_text_buffer_apply_tag_by_name(window_buffer, "default", &input_iter, &end_iter); gtk_text_buffer_apply_tag_by_name(window_buffer, "input", &input_iter, &end_iter); + gtk_text_buffer_apply_tag_by_name(window_buffer, "glk-input", &input_iter, &end_iter); } /* Internal function: Callback for signal activate on the line input GtkEntry @@ -965,7 +967,7 @@ force_line_input_from_queue(winid_t win, event_t *event) { gtk_text_buffer_get_end_iter(buffer, &end); gchar *text_to_insert = g_strconcat(text, "\n", NULL); - gtk_text_buffer_insert_with_tags_by_name(buffer, &end, text_to_insert, -1, "default", "input", NULL); + gtk_text_buffer_insert_with_tags_by_name(buffer, &end, text_to_insert, -1, "default", "input", "glk-input", NULL); } chars_written = finish_text_buffer_line_input(win, TRUE);