From d5ea33b91c35407c72c6d461d79d8db01d8ae32c Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Thu, 13 Dec 2001 00:30:39 +0000 Subject: always print and clear the exceptions in callback marshalers. People who 2001-12-12 Matt Wilson * gobjectmodule.c (pyg_closure_marshal, pyg_signal_class_closure_marshal): always print and clear the exceptions in callback marshalers. People who want to catch these exceptions and make them fatal should use sys.excepthook. (pyg_fatal_exceptions_notify, pyg_fatal_exceptions_notify_add, pyg_fatal_exceptions_remove): remove now unused functions. Also remove them from the PyGObject_API. * gtk/pygtk.h (PyGtk_FatalExceptions): remove. * gtk/pygtk-private.h (PyGtk_FatalExceptions): remove. * gtk/gtkmodule.c (init_gtk): don't bother with PYGTK_FATAL_EXCEPTIONS. (pygtk_main_quit): remove unused code. * gtk/gtk.override (_wrap_gtk_item_factory_create_items, _wrap_gtk_menu_popup): likewise, always print and clear the exception. --- gtk/pygtk-private.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'gtk/pygtk-private.h') diff --git a/gtk/pygtk-private.h b/gtk/pygtk-private.h index e78f75cb..12c58c3b 100644 --- a/gtk/pygtk-private.h +++ b/gtk/pygtk-private.h @@ -37,8 +37,6 @@ GtkTreePath *pygtk_tree_path_from_pyobject(PyObject *object); GdkAtom pygdk_atom_from_pyobject(PyObject *object); -static gboolean PyGtk_FatalExceptions = FALSE; - typedef struct { PyObject *func, *data; } PyGtkCustomNotify; -- cgit v1.2.1