[pygtk] Reference the surface in GtkPrintJob.get_surface
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygtk] Reference the surface in GtkPrintJob.get_surface
- Date: Thu, 23 Dec 2010 21:47:15 +0000 (UTC)
commit 828f3c430e535fae6e55a8e49ca0c7087b560ac2
Author: Mathias Doreille <doreille smr ch>
Date: Fri Dec 24 09:58:30 2010 +1300
Reference the surface in GtkPrintJob.get_surface
* Fixes bug 532322
gtk/gtkunixprint.override | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkunixprint.override b/gtk/gtkunixprint.override
index d984c95..05ac8c7 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
}
%%
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]