~ubuntu-branches/ubuntu/raring/librsvg/raring-proposed

« back to all changes in this revision

Viewing changes to gdk-pixbuf-loader/io-svg.c

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2012-03-27 01:47:52 UTC
  • mfrom: (1.1.32) (36 experimental)
  • mto: This revision was merged to the branch mainline in revision 37.
  • Revision ID: package-import@ubuntu.com-20120327014752-c9vmipiww40cnip7
Tags: 2.36.0-1
* New upstream release.
* Update debian/copyright using the machine-readable copyright format 1.0.
* Bump Standards-Version to 3.9.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 * Boston, MA 02111-1307, USA.
22
22
 */
23
23
 
 
24
#include "config.h"
 
25
 
 
26
#include <stdlib.h>
 
27
 
24
28
#include <rsvg.h>
25
 
#include <stdlib.h>
26
29
#include <gdk-pixbuf/gdk-pixbuf.h>
27
 
#include "rsvg-private.h"
 
30
 
28
31
#include "librsvg-features.h"
29
32
 
 
33
#define N_(string) (string)
 
34
#define _(string) (string)
 
35
 
30
36
typedef struct {
31
37
        RsvgHandle                 *handle;
32
38
 
166
172
        g_object_unref (context->handle);
167
173
        g_free (context);
168
174
 
169
 
        return TRUE;
 
175
        return result;
170
176
}
171
177
 
172
178
void
173
179
fill_vtable (GdkPixbufModule *module)
174
180
{
175
 
        /*todo: call this somewhere to make sure the gnome-vfs et. al. are initialized */
176
 
        /*rsvg_init ();*/
177
 
 
178
181
        module->begin_load     = gdk_pixbuf__svg_image_begin_load;
179
182
        module->stop_load      = gdk_pixbuf__svg_image_stop_load;
180
183
        module->load_increment = gdk_pixbuf__svg_image_load_increment;
234
237
                "image/svg-xml",
235
238
                "image/vnd.adobe.svg+xml",
236
239
                "text/xml-svg",
237
 
#if LIBRSVG_CHECK_FEATURE(SVGZ)
238
240
                "image/svg+xml-compressed",
239
 
#endif
240
241
                NULL
241
242
        };
242
243
        static gchar *extensions[] = {
243
244
                "svg",
244
 
#if LIBRSVG_CHECK_FEATURE(SVGZ)
245
245
                "svgz",
246
246
                "svg.gz",
247
 
#endif
248
247
                NULL
249
248
        };
250
249