Hello :)))
Bug fixiiinnnggg... :-)))))
GnomeCanvas.w2c() and GnomeCanvas.c2w() didn't work.
This is the patch (diff -u):
--- pygnome.o/gnomeuimodule.c Thu Apr 13 00:37:33 2000
+++ pygnome/gnomeuimodule.c Thu Apr 13 16:56:46 2000
@@ -444,7 +444,7 @@
PyObject *obj;
int cx, cy;
double wx = 0.0, wy = 0.0;
- if (!PyArg_ParseTuple(args, "O!dd:gnome_canvas_w2c", &PyGtk_Type, &obj,wx,wy))
+ if (!PyArg_ParseTuple(args, "O!dd:gnome_canvas_w2c", &PyGtk_Type, &obj, &wx, &wy))
return NULL;
gnome_canvas_w2c(GNOME_CANVAS(PyGtk_Get(obj)), wx, wy, &cx, &cy);
return Py_BuildValue("(ii)", cx, cy);
@@ -454,7 +454,7 @@
PyObject *obj;
int cx = 0, cy = 0;
double wx, wy;
- if (!PyArg_ParseTuple(args, "O!ii:gnome_canvas_w2c", &PyGtk_Type, &obj,cx,cy))
+ if (!PyArg_ParseTuple(args, "O!ii:gnome_canvas_c2w", &PyGtk_Type, &obj, &cx, &cy))
return NULL;
gnome_canvas_c2w(GNOME_CANVAS(PyGtk_Get(obj)), cx, cy, &wx, &wy);
return Py_BuildValue("(dd)", wx, wy);
--
Greetings, alo.
Linux reg. user: #80626, GnuPG Key ID: 0x0fed38a51
-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]