diff options
author | Thomas White <taw@bitwiz.me.uk> | 2018-05-01 22:12:22 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2018-05-01 22:12:22 +0200 |
commit | 072516c65a7335cc168e6ecc9b5a0737c9842913 (patch) | |
tree | 9390bd7da99406258fa4ec2b6f88e8a01cab1fe5 /src/sc_editor.h | |
parent | ebe339f9f26287216d8e6bc969ef3eaba7377e5c (diff) |
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.
Diffstat (limited to 'src/sc_editor.h')
-rw-r--r-- | src/sc_editor.h | 6 |
1 files changed, 3 insertions, 3 deletions
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); |