summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-24 18:08:15 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-24 18:08:15 -0300
commit71d2312487fed19d2500357cb644c3801179f600 (patch)
tree70510dcfbc9abb3376306492b89845333fc2865b /gui
parent279ddbdb4fb11dbffb487db05b74787b5275b4d9 (diff)
downloadeeshow-71d2312487fed19d2500357cb644c3801179f600.tar.gz
eeshow-71d2312487fed19d2500357cb644c3801179f600.tar.bz2
eeshow-71d2312487fed19d2500357cb644c3801179f600.zip
separate argument list from gfx_init; related API changes
Diffstat (limited to 'gui')
-rw-r--r--gui/index.c4
-rw-r--r--gui/render.c6
2 files changed, 3 insertions, 7 deletions
diff --git a/gui/index.c b/gui/index.c
index 8a6e4b5..f9ecc70 100644
--- a/gui/index.c
+++ b/gui/index.c
@@ -267,9 +267,7 @@ static void index_render_sheet(const struct gui_ctx *ctx,
int stride;
if (!sheet->gfx_thumb) {
- char *argv[] = { "index", NULL };
-
- sheet->gfx_thumb = gfx_init(&cro_canvas_ops, 1, argv);
+ sheet->gfx_thumb = gfx_init(&cro_canvas_ops);
sch_render(sheet->sch, sheet->gfx_thumb);
cro_canvas_end(gfx_user(sheet->gfx_thumb),
NULL, NULL, NULL, NULL);
diff --git a/gui/render.c b/gui/render.c
index a5eb8e4..2411fd6 100644
--- a/gui/render.c
+++ b/gui/render.c
@@ -250,9 +250,7 @@ static gboolean on_draw_event(GtkWidget *widget, cairo_t *cr,
void render_sheet(struct gui_sheet *sheet)
{
- char *argv[] = { "gui", NULL };
-
- sheet->gfx = gfx_init(&cro_canvas_ops, 1, argv);
+ sheet->gfx = gfx_init(&cro_canvas_ops);
if (sheet->hist && sheet->hist->pl) /* @@@ no pl_render for delta */
pl_render(sheet->hist->pl, sheet->gfx,
sheet->hist->sch_ctx.sheets, sheet->sch);
@@ -260,7 +258,7 @@ void render_sheet(struct gui_sheet *sheet)
cro_canvas_end(gfx_user(sheet->gfx),
&sheet->w, &sheet->h, &sheet->xmin, &sheet->ymin);
- sheet->gfx_extra = gfx_init(&cro_canvas_ops, 1, argv);
+ sheet->gfx_extra = gfx_init(&cro_canvas_ops);
sch_render_extra(sheet->sch, sheet->gfx_extra);
cro_canvas_end(gfx_user(sheet->gfx_extra), NULL, NULL, NULL, NULL);