Compare commits
No commits in common. "e23f917f024b421dfee53a2f49f1280a10403ac3" and "50fc355a0f36b7b033690558e4a273a280eab9b7" have entirely different histories.
e23f917f02
...
50fc355a0f
3 changed files with 10 additions and 8 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
--[[ utility functions ]]--
|
||||||
|
|
||||||
|
--
|
||||||
|
|
||||||
--[[ page module ]]--
|
--[[ page module ]]--
|
||||||
|
|
||||||
page = {}
|
page = {}
|
||||||
|
@ -8,7 +12,7 @@ end
|
||||||
|
|
||||||
function page.Append(content)
|
function page.Append(content)
|
||||||
for i, v in pairs(content) do
|
for i, v in pairs(content) do
|
||||||
__ext_pageview_append_tag("t", v)
|
__ext_pageview_append_tag("t", v[1] or v)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
page.Commit{
|
page.Commit{
|
||||||
"<span foreground='blue' size='x-large'>Blue text</span> is <i>cool</i>!",
|
"yeah"
|
||||||
"\n",
|
|
||||||
"so true"
|
|
||||||
}
|
}
|
2
ui.c
2
ui.c
|
@ -34,7 +34,7 @@ void page_application_show(struct application_state* state) {
|
||||||
void page_application_text_buffer_append_text(struct application_state* state, const char* display_text) {
|
void page_application_text_buffer_append_text(struct application_state* state, const char* display_text) {
|
||||||
GtkTextIter iter;
|
GtkTextIter iter;
|
||||||
gtk_text_buffer_get_end_iter(GTK_TEXT_BUFFER(state->pageview_buffer), &iter);
|
gtk_text_buffer_get_end_iter(GTK_TEXT_BUFFER(state->pageview_buffer), &iter);
|
||||||
gtk_text_buffer_insert_markup(GTK_TEXT_BUFFER(state->pageview_buffer), &iter, display_text, -1);
|
gtk_text_buffer_insert(GTK_TEXT_BUFFER(state->pageview_buffer), &iter, display_text, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void page_application_text_buffer_set_text(struct application_state* state, const char* text) {
|
void page_application_text_buffer_set_text(struct application_state* state, const char* text) {
|
||||||
|
|
Loading…
Reference in a new issue