From baf6594f68719664953ff7b47ee539a02ebba4e9 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 10 Mar 2019 18:25:36 +0100 Subject: Start up correctly with completely empty document --- src/colloquium.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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); } } -- cgit v1.2.3