diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-04-30 17:51:31 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-04-30 18:01:22 +0200 |
commit | c1b0437dd1f1bc6df338ad9fc15d270b9cc33884 (patch) | |
tree | d24f40699ae099abd7bae2c0ed2d6489d4144588 /src/colloquium.c | |
parent | 584ff995faa629c82377d3a44fb25d5100d09c76 (diff) |
Create stylesheet with narrative
This means there'll ALWAYS be a default stylesheet present, avoiding
crashes and a lot of special cases.
Diffstat (limited to 'src/colloquium.c')
-rw-r--r-- | src/colloquium.c | 6 |
1 files changed, 1 insertions, 5 deletions
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); } } |