On Thu, 29 Apr 1999, David M. Cook wrote:
> I'm getting seg faults with gnome-python 1.0.2 when selecting some menu
> items in a gtk app (menus made with item factory). Same behavior under Gtk
> 1.2.1 and 1.2.2.
Try the following patch. That works for me.
--- gtkmodule.c.orig Thu Apr 29 15:12:08 1999
+++ gtkmodule.c Fri Apr 30 08:17:12 1999
@@ -4204,8 +4204,10 @@
static void PyGtk_item_factory_cb(PyObject *callback, guint action,
GtkWidget *widget) {
PyObject *ret;
+ PyGTK_BLOCK_THREADS
ret = PyObject_CallFunction(callback, "iO", action,
PyGtk_New((GtkObject *)widget));
+ PyGTK_UNBLOCK_THREADS
if (ret == NULL) {
if (PyGtk_FatalExceptions)
gtk_main_quit();
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]