diff --git a/pages/test.lua b/pages/test.lua index 240ca44..15b8d65 100644 --- a/pages/test.lua +++ b/pages/test.lua @@ -1,3 +1,5 @@ page.Commit{ - "yeah" -} \ No newline at end of file + "Blue text is cool!", + "\n", + "so true" +} diff --git a/ui.c b/ui.c index 859cd95..25e9254 100644 --- a/ui.c +++ b/ui.c @@ -34,9 +34,9 @@ void page_application_show(struct application_state* state) { void page_application_text_buffer_append_text(struct application_state* state, const char* display_text) { GtkTextIter iter; gtk_text_buffer_get_end_iter(GTK_TEXT_BUFFER(state->pageview_buffer), &iter); - gtk_text_buffer_insert(GTK_TEXT_BUFFER(state->pageview_buffer), &iter, display_text, -1); + gtk_text_buffer_insert_markup(GTK_TEXT_BUFFER(state->pageview_buffer), &iter, display_text, -1); } void page_application_text_buffer_set_text(struct application_state* state, const char* text) { gtk_text_buffer_set_text(state->pageview_buffer, text, -1); -} \ No newline at end of file +}