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

« back to all changes in this revision

Viewing changes to rsvg.c

  • Committer: Package Import Robot
  • Author(s): Simon McVittie
  • Date: 2012-10-22 20:17:48 UTC
  • mfrom: (1.2.1) (34.1.24 sid)
  • Revision ID: package-import@ubuntu.com-20121022201748-6frue379at27szqm
Tags: 2.36.4-1
* Team upload
* New upstream version (LP: #1038843)
* Use dh-autoreconf with --as-needed instead of patching ltmain.sh
  (from Ubuntu, thanks Iain Lane)
* Enable Vala bindings (based on Ubuntu changes, thanks to Robert Ancell)
  - Build-Conflicts: valac-0.16 because if both are installed, the
    default version 0.16 is selected, breaking our build

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
#include "rsvg-cairo.h"
45
45
#include "rsvg-cairo-draw.h"
46
46
 
47
 
static void
48
 
rsvg_pixmap_destroy (gchar * pixels, gpointer data)
49
 
{
50
 
    g_free (pixels);
51
 
}
52
 
 
53
47
/**
54
48
 * rsvg_handle_get_pixbuf_sub:
55
49
 * @handle: An #RsvgHandle
63
57
 * will be returned.  Note that the pixbuf may not be complete until
64
58
 * @rsvg_handle_close has been called.
65
59
 *
66
 
 * Returns: the pixbuf loaded by #handle, or %NULL.
 
60
 * Returns: (transfer full): the pixbuf loaded by #handle, or %NULL.
67
61
 *
68
62
 * Since: 2.14
69
63
 **/
72
66
{
73
67
    RsvgDimensionData dimensions;
74
68
    GdkPixbuf *output = NULL;
75
 
    guint8 *pixels;
76
69
    cairo_surface_t *surface;
77
70
    cairo_t *cr;
78
 
    int rowstride;
79
71
 
80
72
    g_return_val_if_fail (handle != NULL, NULL);
81
73