[compiz] patch: libsvg/libsvg-cairo to librsvg

Martin Szulecki compiz at sukimashita.com
Mon Jul 31 07:17:11 PDT 2006


Funny, I thought it is a good idea and created a patch for librsvg
support two days ago aswell (even if it is just for that very very very
useful slide stuff on the cube which every compiz user uses daily). ;)

The only thing that kept me from posting it yet were some problems:

1. In compiz.h included from cube.c TRUE and FALSE get redefined:

<pre>
In file included from ../include/compiz.h:36,
                 from cube.c:47:
/usr/X11R6/include/X11/Xregion.h:60:1: warning: "TRUE" redefined
In file included from /opt/gnome/lib/glib-2.0/include/glibconfig.h:9,
                 from /opt/gnome/include/glib-2.0/glib/gtypes.h:30,
                 from /opt/gnome/include/glib-2.0/glib/galloca.h:30,
                 from /opt/gnome/include/glib-2.0/glib.h:30,

from /opt/gnome/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:29,
                 from /opt/gnome/include/librsvg-2/librsvg/rsvg.h:28,
                 from cube.c:40:
/opt/gnome/include/glib-2.0/glib/gmacros.h:163:1: warning: this is the
location of the previous definition
In file included from ../include/compiz.h:36,
                 from cube.c:47:
/usr/X11R6/include/X11/Xregion.h:61:1: warning: "FALSE" redefined
In file included from /opt/gnome/lib/glib-2.0/include/glibconfig.h:9,
                 from /opt/gnome/include/glib-2.0/glib/gtypes.h:30,
                 from /opt/gnome/include/glib-2.0/glib/galloca.h:30,
                 from /opt/gnome/include/glib-2.0/glib.h:30,

from /opt/gnome/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:29,
                 from /opt/gnome/include/librsvg-2/librsvg/rsvg.h:28,
                 from cube.c:40:
/opt/gnome/include/glib-2.0/glib/gmacros.h:159:1: warning: this is the
location of the previous definition
</pre>

Anyone seen that with this patch too?

2. rsvg_handle_free is apparently deprecated, however using
rsvg_handle_close yields in segfaults... (have librsvg 2.15.0)

Anyways, great work and hopefully upstream material ;)

--- Martin Szulecki



More information about the compiz mailing list