diff options
author | Mathias Doreille <doreille@smr.ch> | 2010-12-24 09:58:30 +1300 |
---|---|---|
committer | John Stowers <john.stowers@gmail.com> | 2010-12-24 09:58:30 +1300 |
commit | 828f3c430e535fae6e55a8e49ca0c7087b560ac2 (patch) | |
tree | 02d7f13afad3062eec8b5f3ffe3c72d906f62054 | |
parent | 5eea5d244e7a69b517f08506e8c1950fb721d6f9 (diff) | |
download | pygtk-828f3c430e535fae6e55a8e49ca0c7087b560ac2.tar.gz |
Reference the surface in GtkPrintJob.get_surface
* Fixes bug 532322
-rw-r--r-- | gtk/gtkunixprint.override | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkunixprint.override b/gtk/gtkunixprint.override index d984c952..05ac8c71 100644 --- a/gtk/gtkunixprint.override +++ b/gtk/gtkunixprint.override @@ -103,9 +103,9 @@ _wrap_gtk_print_job_get_surface(PyGObject *self) return NULL; #if PYCAIRO_VERSION_HEX >= 0x1010600 - return PycairoSurface_FromSurface(surface, NULL); + return PycairoSurface_FromSurface(cairo_surface_reference(surface), NULL); #else - return PycairoSurface_FromSurface(surface, NULL, NULL); + return PycairoSurface_FromSurface(cairo_surface_reference(surface), NULL, NULL); #endif } %% |