From 072516c65a7335cc168e6ecc9b5a0737c9842913 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 1 May 2018 22:12:22 +0200 Subject: Get rid of stylesheet lists and add stylesheet change signal We no longer have a need for more than one (since the callback stuff changed, see 61394e51), and removing it makes it much easier to hook up the stylesheet update code for the stylesheet editor. --- src/sc_editor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sc_editor.h') diff --git a/src/sc_editor.h b/src/sc_editor.h index 5fea0e1..adbbaf2 100644 --- a/src/sc_editor.h +++ b/src/sc_editor.h @@ -94,7 +94,7 @@ struct _sceditor double log_w; /* Size of surface in "SC units" */ double log_h; SCBlock *scblocks; - SCBlock **stylesheets; + SCBlock *stylesheet; ImageStore *is; SCCallbackList *cbl; struct frame *top; @@ -168,10 +168,10 @@ typedef struct _sceditor SCEditor; typedef struct _sceditorclass SCEditorClass; extern void sc_editor_set_scblock(SCEditor *e, SCBlock *scblocks); -extern void sc_editor_set_stylesheets(SCEditor *e, SCBlock **stylesheets); +extern void sc_editor_set_stylesheet(SCEditor *e, SCBlock *stylesheet); extern SCBlock *sc_editor_get_scblock(SCEditor *e); extern GtkWidget *sc_editor_get_widget(SCEditor *e); -extern SCEditor *sc_editor_new(SCBlock *scblocks, SCBlock **stylesheets, +extern SCEditor *sc_editor_new(SCBlock *scblocks, SCBlock *stylesheet, PangoLanguage *lang, const char *storename); extern void sc_editor_set_size(SCEditor *e, int w, int h); extern void sc_editor_set_logical_size(SCEditor *e, double w, double h); -- cgit v1.2.3