diff options
Diffstat (limited to 'meta/recipes-devtools/python/python-pygtk')
-rw-r--r-- | meta/recipes-devtools/python/python-pygtk/fix-gtkunixprint.patch | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/meta/recipes-devtools/python/python-pygtk/fix-gtkunixprint.patch b/meta/recipes-devtools/python/python-pygtk/fix-gtkunixprint.patch index 6d2f64b414..16c0e8e770 100644 --- a/meta/recipes-devtools/python/python-pygtk/fix-gtkunixprint.patch +++ b/meta/recipes-devtools/python/python-pygtk/fix-gtkunixprint.patch @@ -1,17 +1,19 @@ Upstream-Status: Inappropriate [configuration] -Index: pygtk-2.10.0/gtk/gtkunixprint.override +Signed-off-by: Saul Wold <sgw@linux.intel.com> + +Index: pygtk-2.24.0/gtk/gtkunixprint.override =================================================================== ---- pygtk-2.10.0.orig/gtk/gtkunixprint.override -+++ pygtk-2.10.0/gtk/gtkunixprint.override -@@ -105,11 +105,7 @@ _wrap_gtk_print_job_get_surface(PyGObjec +--- pygtk-2.24.0.orig/gtk/gtkunixprint.override ++++ pygtk-2.24.0/gtk/gtkunixprint.override +@@ -102,11 +102,6 @@ _wrap_gtk_print_job_get_surface(PyGObjec if (pyg_error_check(&error)) 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 } %% |