aboutsummaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-03-11 23:17:06 +0100
committerThomas White <taw@physics.org>2018-03-11 23:21:52 +0100
commitc7a86a47001baca65c87d0f060f9a57af8537cf2 (patch)
treeb5a2ae1e710d7efc1e6830f3323edab5082d5759 /src/print.c
parent2975d15b76c5321d9facae06266fbc17dc99492b (diff)
Rename some functions to make them unique
Makes things less confusing. Ulterior motive: makes Meson unity builds work.
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c16
1 files changed, 8 insertions, 8 deletions
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;
}