summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/py-gtk2
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-06-25 06:20:21 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-06-25 06:20:21 +0800
commitf56052466157f511508da020ccf926eb2006cff4 (patch)
tree7fede270067eb3dc0376f15a56df4b58c5ad941f /x11-toolkits/py-gtk2
parenteb78ad173cd8acf1c8f1d4bacde5e01db3559456 (diff)
downloadmarcuscom-ports-f56052466157f511508da020ccf926eb2006cff4.tar
marcuscom-ports-f56052466157f511508da020ccf926eb2006cff4.tar.gz
marcuscom-ports-f56052466157f511508da020ccf926eb2006cff4.tar.bz2
marcuscom-ports-f56052466157f511508da020ccf926eb2006cff4.tar.lz
marcuscom-ports-f56052466157f511508da020ccf926eb2006cff4.tar.xz
marcuscom-ports-f56052466157f511508da020ccf926eb2006cff4.tar.zst
marcuscom-ports-f56052466157f511508da020ccf926eb2006cff4.zip
Fix build with latest gtk20.
Obtained from: GNOME CVS git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6487 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-toolkits/py-gtk2')
-rw-r--r--x11-toolkits/py-gtk2/files/patch-gtk_gtkunixprint.override34
1 files changed, 34 insertions, 0 deletions
diff --git a/x11-toolkits/py-gtk2/files/patch-gtk_gtkunixprint.override b/x11-toolkits/py-gtk2/files/patch-gtk_gtkunixprint.override
new file mode 100644
index 000000000..c3ea399b1
--- /dev/null
+++ b/x11-toolkits/py-gtk2/files/patch-gtk_gtkunixprint.override
@@ -0,0 +1,34 @@
+--- gtk/gtkunixprint.override 2006/06/15 12:19:06 1.4
++++ gtk/gtkunixprint.override 2006/06/22 15:51:01 1.5
+@@ -151,8 +151,6 @@
+ static char *kwlist[] = { "callback", "user_data", NULL };
+ PyObject *pyfunc, *pyarg = NULL;
+ PyGtkCustomNotify *cunote;
+- GError *error = NULL;
+- gboolean ret;
+
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs,
+ "O|O:gtk.unixprint.PrintJob.send",
+@@ -169,18 +167,10 @@
+ Py_INCREF(cunote->func);
+ Py_XINCREF(cunote->data);
+
+- ret = gtk_print_job_send(GTK_PRINT_JOB(self->obj),
++ gtk_print_job_send(GTK_PRINT_JOB(self->obj),
+ pygtk_print_job_complete_func_cb,
+- cunote, pygtk_custom_destroy_notify, &error);
++ cunote, pygtk_custom_destroy_notify);
+
+- if (!ret) {
+- Py_XDECREF(cunote->func);
+- Py_XDECREF(cunote->data);
+- g_free(cunote);
+- }
+-
+- if (pyg_error_check(&error))
+- return NULL;
+-
+- return PyBool_FromLong(ret);
++ Py_INCREF(Py_None);
++ return Py_None;
+ }