On Sat, Nov 23, 2013 at 03:14:47PM -0500, Matthias Clasen wrote:
> On Sat, Nov 23, 2013 at 12:12 PM, Patrick Welche <pr...@cam.ac.uk> wrote:
> 
> > On Sat, Nov 23, 2013 at 04:04:08PM +0100, Milan Bouchet-Valat wrote:
> > > Just a random guess, but are you sure Gdk was built with SVG support
> > > enabled? You need librsvg, and sometimes it happens to be missing (or
> > > not found)
> >
> > That was what I was worried about in:
> >
> >     https://mail.gnome.org/archives/gtk-list/2013-November/msg00015.html
> >
> >     "I have libpixbufloader-svg.so and an svg entry in loaders.cache."
> >
> > Given that there were no replies, I assume that that is the complete
> > checklist.
> >
> 
> Your librsvg may be too old to render symbolic icons. See
> 
> 
> https://git.gnome.org/browse/librsvg/commit/?id=b864307868d3977dfa5e127ff95d7efded854850
> 
> and the bug referenced there.

I have now tried with librsvg 2.40.1, and evince still doesn't find its icons.
I managed to build librsvg with the attached patch.

Cheers,

Patrick
--- rsvg-base.c.orig    2013-05-11 09:19:07.000000000 +0000
+++ rsvg-base.c
@@ -2190,8 +2190,7 @@ _rsvg_handle_allow_load (RsvgHandle *han
     dir = g_file_get_path (base);
     g_object_unref (base);
 
-    /* FIXME portability */
-    cdir = canonicalize_file_name (dir);
+    cdir = realpath (dir, NULL);
     g_free (dir);
     if (cdir == NULL)
         goto deny;
@@ -2200,8 +2199,7 @@ _rsvg_handle_allow_load (RsvgHandle *han
     if (path == NULL)
         goto deny;
 
-    /* FIXME portability */
-    cpath = canonicalize_file_name (path);
+    cpath = realpath (path, NULL);
     g_free (path);
 
     if (cpath == NULL)
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list

Reply via email to