aboutsummaryrefslogtreecommitdiff
path: root/src/narrative_window.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2014-12-26 22:34:04 +0000
committerThomas White <taw@bitwiz.org.uk>2014-12-26 22:34:04 +0000
commite8c7ca3bbc48da3d9806b92abb3827e331594eee (patch)
tree835a47ee47920f1839071c43ead401bf9c4358e1 /src/narrative_window.c
parentb6963faaa75b3fa6ff22ec0bf43670ac9b34279f (diff)
Callback stuff
Diffstat (limited to 'src/narrative_window.c')
-rw-r--r--src/narrative_window.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/narrative_window.c b/src/narrative_window.c
index 55d1961..428187c 100644
--- a/src/narrative_window.c
+++ b/src/narrative_window.c
@@ -194,9 +194,12 @@ static SCBlock *narrative_stylesheet()
}
-static cairo_surface_t *render_thumbnail(SCBlock *scblocks, void *vp)
+static cairo_surface_t *render_thumbnail(SCInterpreter *scin, SCBlock *bl,
+ void *vp)
{
struct presentation *p = vp;
+ printf("thumbnail callback\n");
+ show_sc_block(sc_interp_get_macro_real_block(scin), "");
return NULL;
}
@@ -238,7 +241,7 @@ NarrativeWindow *narrative_window_new(struct presentation *p, GApplication *app)
stylesheets[2] = NULL;
nw->sceditor = sc_editor_new(nw->p->scblocks, stylesheets);
cbl = sc_callback_list_new();
- sc_callback_list_add_callback(cbl, "sthumb", render_thumbnail);
+ sc_callback_list_add_callback(cbl, "sthumb", render_thumbnail, NULL);
sc_editor_set_callbacks(nw->sceditor, cbl);
toolbar = gtk_toolbar_new();