return r;
}
-void
-xr_rendering_apply_options (struct xr_rendering *xr, struct string_map *o)
-{
- if (is_table_item (xr->item))
- apply_options (xr->xr, o);
-}
-
struct xr_rendering *
xr_rendering_create (struct xr_driver *xr, const struct output_item *item,
cairo_t *cr)
cairo_t *);
void xr_rendering_destroy (struct xr_rendering *);
-void xr_rendering_apply_options (struct xr_rendering *, struct string_map *o);
void xr_rendering_measure (const struct xr_rendering *, int *w, int *h);
void xr_rendering_draw (struct xr_rendering *r, cairo_t *cr,
int x0, int y0, int x1, int y1);
string_map_insert (options, "right-margin", "0");
string_map_insert (options, "top-margin", "0");
string_map_insert (options, "bottom-margin", "0");
+
+ string_map_insert (options, "transparent", "true");
+ string_map_insert (options, "systemcolors", "true");
}
static void
GtkWidget *drawing_area, struct xr_rendering *r,
int tw, int th, const struct output_item *item)
{
- struct string_map options = STRING_MAP_INITIALIZER (options);
- string_map_insert (&options, "transparent", "true");
- string_map_insert (&options, "systemcolors", "true");
- xr_rendering_apply_options (r, &options);
-
g_object_set_data_full (G_OBJECT (drawing_area),
"rendering", r, free_rendering);
g_signal_connect (drawing_area, "button-press-event",