From c1b0437dd1f1bc6df338ad9fc15d270b9cc33884 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 30 Apr 2019 17:51:31 +0200 Subject: Create stylesheet with narrative This means there'll ALWAYS be a default stylesheet present, avoiding crashes and a lot of special cases. --- src/colloquium.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/colloquium.c b/src/colloquium.c index d3ada61..95b5231 100644 --- a/src/colloquium.c +++ b/src/colloquium.c @@ -61,12 +61,8 @@ static void colloquium_activate(GApplication *papp) { Colloquium *app = COLLOQUIUM(papp); if ( !app->first_run ) { - Narrative *n; - Stylesheet *ss; - n = narrative_new(); - ss = stylesheet_new(); + Narrative *n = narrative_new(); narrative_add_text(n, strdup("")); - narrative_add_stylesheet(n, ss); narrative_window_new(n, NULL, papp); } } -- cgit v1.2.3