From 119ffdd25dba54d676c783f9cc1646b85a989ea4 Mon Sep 17 00:00:00 2001 From: Darin Adler Date: Tue, 25 Sep 2001 06:28:18 +0000 Subject: Take const char *, not char *. * rsvg.h: * rsvg.c: (rsvg_pixbuf_from_file), (rsvg_pixbuf_from_file_at_zoom), (rsvg_pixbuf_from_file_at_size): Take const char *, not char *. * test-rsvg.c: (main): Remove unneeded casts. Restore the error message for the case when the parser doesn't parse anything. --- rsvg.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rsvg.h') diff --git a/rsvg.h b/rsvg.h index 435a1c65..113851f0 100644 --- a/rsvg.h +++ b/rsvg.h @@ -59,13 +59,13 @@ GdkPixbuf *rsvg_handle_get_pixbuf (RsvgHandle *handle); void rsvg_handle_free (RsvgHandle *handle); /* convenience API */ -GdkPixbuf *rsvg_pixbuf_from_file (gchar *file_name, +GdkPixbuf *rsvg_pixbuf_from_file (const gchar *file_name, GError **error); -GdkPixbuf *rsvg_pixbuf_from_file_at_zoom (gchar *file_name, +GdkPixbuf *rsvg_pixbuf_from_file_at_zoom (const gchar *file_name, double x_zoom, double y_zoom, GError **error); -GdkPixbuf *rsvg_pixbuf_from_file_at_size (gchar *file_name, +GdkPixbuf *rsvg_pixbuf_from_file_at_size (const gchar *file_name, gint width, gint height, GError **error); -- cgit v1.2.1