aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-03-10 18:25:36 +0100
committerThomas White <taw@bitwiz.me.uk>2019-03-10 18:25:36 +0100
commitbaf6594f68719664953ff7b47ee539a02ebba4e9 (patch)
treee34f07aab26c6fdf296f766da1b1bb78251528d2
parente1a96291e1d5f4ec8e358f2a91d34c6019989594 (diff)
Start up correctly with completely empty document
-rw-r--r--src/colloquium.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/colloquium.c b/src/colloquium.c
index 8ee61b4..ac60a63 100644
--- a/src/colloquium.c
+++ b/src/colloquium.c
@@ -62,7 +62,14 @@ static void colloquium_activate(GApplication *papp)
Colloquium *app = COLLOQUIUM(papp);
if ( !app->first_run ) {
Presentation *p;
+ Narrative *n;
+ Stylesheet *ss;
p = presentation_new();
+ n = narrative_new();
+ ss = stylesheet_new();
+ narrative_add_text(n, strdup(""));
+ presentation_add_narrative(p, n);
+ presentation_add_stylesheet(p, ss);
narrative_window_new(p, papp);
}
}