From ae183124e9317f3d183da746b93d75909c7b89b5 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 20 Oct 2018 10:02:31 +0200 Subject: Remove template stuff --- src/narrative_window.c | 59 ++------------------------------------------------ 1 file changed, 2 insertions(+), 57 deletions(-) (limited to 'src/narrative_window.c') diff --git a/src/narrative_window.c b/src/narrative_window.c index 7a19562..ead78bd 100644 --- a/src/narrative_window.c +++ b/src/narrative_window.c @@ -185,59 +185,6 @@ static void delete_slide_sig(GSimpleAction *action, GVariant *parameter, } -static struct template_id *get_templates(Stylesheet *ss, int *n) -{ - /* FIXME: From JSON stylesheet */ - *n = 0; - return NULL; -} - - -static void update_template_menus(NarrativeWindow *nw) -{ - struct template_id *templates; - int i, n_templates; - - templates = get_templates(nw->p->stylesheet, &n_templates); - - for ( i=0; isceditor); - /* Get the template */ - templ = get_slide_template(nw->p->stylesheet); /* our copy */ - show_sc_blocks(templ); + /* FIXME: Template from JSON */ + templ = sc_parse("\\slide{}"); /* Link the new SCBlock in */ if ( nsblock != NULL ) { @@ -865,7 +811,6 @@ NarrativeWindow *narrative_window_new(struct presentation *p, GApplication *papp "win.last"); update_toolbar(nw); - update_template_menus(nw); scroll = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scroll), -- cgit v1.2.3