X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=src%2Fgrr_icon.c;h=c1076b9c6ebdfa874a5d65c8a466734a2cad482f;hb=cb69660363a21978e1919d8f30868e6a5c94a4d4;hp=f4515fe581deb04ce6ebcf96cbb61440fc5c024c;hpb=94802efc6fe8481ba43c379b57a038d6d415ce4d;p=grrobot diff --git a/src/grr_icon.c b/src/grr_icon.c index f4515fe..c1076b9 100644 --- a/src/grr_icon.c +++ b/src/grr_icon.c @@ -127,7 +127,7 @@ grr_icon_create (char *name) static rr_status_t _grr_icon_init (grr_icon_t *icon, char *name) { - xsvg_status_t status; + svg_cairo_status_t status; char *file, *buf; int buflen; @@ -135,15 +135,15 @@ _grr_icon_init (grr_icon_t *icon, char *name) icon->surface_width = 0; icon->surface_height = 0; - status = xsvg_create (&icon->xsvg); + status = svg_cairo_create (&icon->svg_cairo); if (status) return RR_STATUS_NO_MEMORY; file = _grr_icon_find_file (name); if (file) { - status = xsvg_parse_file (icon->xsvg, file); - if (status == XSVG_STATUS_SUCCESS) { + status = svg_cairo_parse (icon->svg_cairo, file); + if (status == SVG_CAIRO_STATUS_SUCCESS) { free (file); return RR_STATUS_SUCCESS; } @@ -152,7 +152,7 @@ _grr_icon_init (grr_icon_t *icon, char *name) } _grr_icon_find_buffer (name, &buf, &buflen); - status = xsvg_parse_buffer (icon->xsvg, buf, buflen); + status = svg_cairo_parse_buffer (icon->svg_cairo, buf, buflen); if (status) { fprintf (stderr, "Error parsing built-in SVG icon for: %s\n", name); return RR_STATUS_PARSE_ERROR; @@ -225,11 +225,11 @@ grr_icon_target_name (rr_target_t target) void grr_icon_draw (grr_icon_t *icon, cairo_t *xrs) { - xsvg_status_t status; + svg_cairo_status_t status; - status = xsvg_render (icon->xsvg, xrs); + status = svg_cairo_render (icon->svg_cairo, xrs); if (status) { - fprintf (stderr, "xsvg_render error\n"); + fprintf (stderr, "svg_cairo_render error\n"); return; } }