From c7a86a47001baca65c87d0f060f9a57af8537cf2 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 11 Mar 2018 23:17:06 +0100 Subject: Rename some functions to make them unique Makes things less confusing. Ulterior motive: makes Meson unity builds work. --- src/print.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/print.c') diff --git a/src/print.c b/src/print.c index 250c9da..18402fc 100644 --- a/src/print.c +++ b/src/print.c @@ -149,8 +149,8 @@ static void print_slide_only(GtkPrintOperation *op, GtkPrintContext *ctx, } -static int create_thumbnail(SCInterpreter *scin, SCBlock *bl, - double *w, double *h, void **bvp, void *vp) +static int print_create_thumbnail(SCInterpreter *scin, SCBlock *bl, + double *w, double *h, void **bvp, void *vp) { struct print_stuff *ps = vp; struct presentation *p = ps->p; @@ -166,7 +166,7 @@ static int create_thumbnail(SCInterpreter *scin, SCBlock *bl, } -static cairo_surface_t *render_thumbnail(int w, int h, void *bvp, void *vp) +static cairo_surface_t *print_render_thumbnail(int w, int h, void *bvp, void *vp) { struct print_stuff *ps = vp; struct presentation *p = ps->p; @@ -186,7 +186,7 @@ static cairo_surface_t *render_thumbnail(int w, int h, void *bvp, void *vp) } -static SCBlock *narrative_stylesheet() +static SCBlock *print_narrative_stylesheet() { return sc_parse("\\stylesheet{" "\\ss[slide]{\\callback[sthumb]}" @@ -205,17 +205,17 @@ static void begin_narrative_print(GtkPrintOperation *op, GtkPrintContext *ctx, cbl = sc_callback_list_new(); ps->slide_number = 1; - sc_callback_list_add_callback(cbl, "sthumb", create_thumbnail, - render_thumbnail, NULL, ps); + sc_callback_list_add_callback(cbl, "sthumb", print_create_thumbnail, + print_render_thumbnail, NULL, ps); ps->is = imagestore_new(ps->storename); if ( ps->p->stylesheet != NULL ) { stylesheets[0] = ps->p->stylesheet; - stylesheets[1] = narrative_stylesheet(); + stylesheets[1] = print_narrative_stylesheet(); stylesheets[2] = NULL; } else { - stylesheets[0] = narrative_stylesheet(); + stylesheets[0] = print_narrative_stylesheet(); stylesheets[1] = NULL; } -- cgit v1.2.3