summaryrefslogtreecommitdiff
path: root/gdkimlibmodule.c
diff options
context:
space:
mode:
authorJames Henstridge <james@daa.com.au>1999-03-12 09:51:23 +0000
committerJames Henstridge <jamesh@src.gnome.org>1999-03-12 09:51:23 +0000
commitb052046f1a3197bb81dda2b5d45473f0d8d158c2 (patch)
tree0905d084a32ef9c2ecc5f866b26a24c6229d3393 /gdkimlibmodule.c
parent4ebb62586edaf92b13c9f5334569204b74818a90 (diff)
downloadpygtk-b052046f1a3197bb81dda2b5d45473f0d8d158c2.tar.gz
increased version number to 0.5.12.
1999-03-12 James Henstridge <james@daa.com.au> * configure.in, pygtk.spec: increased version number to 0.5.12. * gtkmodule.c: added optional support for not catching exceptions in callbacks. This way it should be a lot easier to debug a pygtk program with pdb. * gtkmodule.c, gtk.py: a few fixes for problems sent in by Chi-Deok Hwang. This includes a fix to GtkWidget.event(), assignments to GtkStyle attributes throwing exceptions, font loading getting reference counting correct and throwing exceptions for bad font names and allowing None to be passed as a colour to GnomeCanvasItem.set() (the fix is in pygtk). * generate/gtklists.defs (gtk_ctree_new): I had missed this function in previous releases. 1999-03-12 James Henstridge <james@daa.com.au> * configure.in, gnome-python.spec: incremented version number to 1.0.1 * pygnome/gnome/affine.py: new file that should help people compose affine transformations relatively easily. It allows you to quickly create rotations, scalings, translations and allows you to compose any number of affine transformations or invert them. * pygnome/gnome/ui.py: added GnomeCanvasItem.affine_relative and GnomeCanvasItem.affine_absolute. * pygnome/gnomeuimodule.c: added the PYGTK_FATAL_EXCEPTIONS handling code to this module as well. Added gnome_canvas_item_affine_{relative,absolute}. * */Makefile.am: changes so that you can build gnome-python with build directory != source directory.
Diffstat (limited to 'gdkimlibmodule.c')
-rw-r--r--gdkimlibmodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdkimlibmodule.c b/gdkimlibmodule.c
index 55f6b43b..d76f6848 100644
--- a/gdkimlibmodule.c
+++ b/gdkimlibmodule.c
@@ -814,6 +814,10 @@ void init_gdkimlib() {
/* get types and exported functions out of _gtkmodule */
m = PyImport_ImportModule("_gtk");
+ if (m == NULL) {
+ Py_FatalError("couldn't import _gtk");
+ return;
+ }
d = PyModule_GetDict(m);
Py_DECREF(m);