[eog/gnome-2-32: 6/34] Use rsvg_handle_set_base_uri to resolve relative path.
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog/gnome-2-32: 6/34] Use rsvg_handle_set_base_uri to resolve relative path.
- Date: Wed, 4 Aug 2010 22:12:14 +0000 (UTC)
commit 1549c2788479115bf910709ea6b22fcaecbc460f
Author: Hiroyuki Ikezoe <poincare ikezoe net>
Date: Sat Apr 10 17:00:48 2010 +0900
Use rsvg_handle_set_base_uri to resolve relative path.
(bug 615344)
src/eog-image.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-image.c b/src/eog-image.c
index e6297d7..8203b65 100644
--- a/src/eog-image.c
+++ b/src/eog-image.c
@@ -953,8 +953,12 @@ eog_image_real_load (EogImage *img,
}
if (!strcmp (mime_type, "image/svg+xml")) {
+ gchar *file_path;
/* Keep the object for rendering */
priv->svg = rsvg_handle_new ();
+ file_path = g_file_get_path (priv->file);
+ rsvg_handle_set_base_uri (priv->svg, file_path);
+ g_free (file_path);
}
#endif
loader = gdk_pixbuf_loader_new_with_mime_type (mime_type, error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]