diff options
author | Thomas White <taw@physics.org> | 2020-01-25 19:45:16 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-01-25 19:45:16 +0100 |
commit | 6c62ca4eba59eeb01dcd9d83894406e0cb30c4fd (patch) | |
tree | 465451b69e4079bd3f14a496b2f5853970b1b271 /src/colloquium.c | |
parent | e5c7702870a1bddac6b46ae82c90864f94172ca9 (diff) |
Use embedded default stylesheet for new presentations
Diffstat (limited to 'src/colloquium.c')
-rw-r--r-- | src/colloquium.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/colloquium.c b/src/colloquium.c index 745ccef..5a7d4a2 100644 --- a/src/colloquium.c +++ b/src/colloquium.c @@ -62,8 +62,11 @@ static void colloquium_activate(GApplication *papp) Colloquium *app = COLLOQUIUM(papp); if ( !app->first_run ) { Narrative *n = narrative_new(); + GFile *file = g_file_new_for_uri("resource:///uk/me/bitwiz/Colloquium/default.ss"); + stylesheet_set_from_file(narrative_get_stylesheet(n), file); narrative_add_empty_item(n); narrative_window_new(n, NULL, papp); + g_object_unref(file); } } |