summaryrefslogtreecommitdiffstats
path: root/meta/packages/python/python-pygtk/fix-gtkunixprint.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/python/python-pygtk/fix-gtkunixprint.patch')
-rw-r--r--meta/packages/python/python-pygtk/fix-gtkunixprint.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/packages/python/python-pygtk/fix-gtkunixprint.patch b/meta/packages/python/python-pygtk/fix-gtkunixprint.patch
new file mode 100644
index 0000000000..dca19ce5ed
--- /dev/null
+++ b/meta/packages/python/python-pygtk/fix-gtkunixprint.patch
@@ -0,0 +1,16 @@
1Index: pygtk-2.10.0/gtk/gtkunixprint.override
2===================================================================
3--- pygtk-2.10.0.orig/gtk/gtkunixprint.override
4+++ pygtk-2.10.0/gtk/gtkunixprint.override
5@@ -105,11 +105,7 @@ _wrap_gtk_print_job_get_surface(PyGObjec
6 if (pyg_error_check(&error))
7 return NULL;
8
9-#if PYCAIRO_VERSION_HEX >= 0x1010600
10 return PycairoSurface_FromSurface(surface, NULL);
11-#else
12- return PycairoSurface_FromSurface(surface, NULL, NULL);
13-#endif
14 }
15 %%
16 override gtk_print_job_send kwargs