diff options
author | Hans Breuer <hans@breuer.org> | 2002-04-21 20:21:27 +0000 |
---|---|---|
committer | Hans Breuer <hans@src.gnome.org> | 2002-04-21 20:21:27 +0000 |
commit | 1067be1cc6340705ede7131b5f26ae28daeaea75 (patch) | |
tree | 6121c81d1c9fffece4db2d23a03c1d92b6ef9da3 /gtk/gtkmodule.c | |
parent | 51f2bcf9332693198db10c92eda16051b8e7d757 (diff) | |
download | pygtk-1067be1cc6340705ede7131b5f26ae28daeaea75.tar.gz |
added parameter --errorfilename to allow redirection of stderr even with
2002-04-21 Hans Breuer <hans@breuer.org>
* codegen/codegen.py : added parameter --errorfilename
to allow redirection of stderr even with clumsy windoze
shell
* codegen/override.py : extended to allow 'sys.platform'
specific ignores
* examples/pygtk-demo/demos/colorsel.py : use
color = gtk.gdk.color_parse("blue")
to get the initial color
* examples/pygtk-demo/demos/draw.py : (new file)
demonstrating some simple drawing operations. It is
using the gtk.GC interface additions below.
* gtk/gdk.override : implement GdkGC.tp_getattr,
GdkGC.tp_setattr and gdk_gc_set_dashes (ported from #if 0'ed
code in gtk/gtk-types.c (should be removed there ?)
* gtk/gtk.override : ignore-win32 GTK_TYPE_PLUG
GTK_TYPE_SOCKET gtk_socket_new (the TYPE ignores do not work yet)
* config.h.win32 makefile.msc pygtk/makefile.msc :
new files to build pygtk on windoze using the established
glib/build/win32 infrastructure
* pygtk/gtk/gtk-fake-win32.c : (new file) implementing
gtk_plug_get_type() and gtk_socket_get_type(). It could
vanish if codegen/codegen.py has learned something like
'ignore-class-$(sys.platform) or my GtkPlug/GtkSocket
patch gets accepted with Gtk.
* gtk/gtkmodule.c : added a g_assert() to ensure importing
pygobject did work.
Diffstat (limited to 'gtk/gtkmodule.c')
-rw-r--r-- | gtk/gtkmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkmodule.c b/gtk/gtkmodule.c index 664e4ba0..27b8b658 100644 --- a/gtk/gtkmodule.c +++ b/gtk/gtkmodule.c @@ -35,6 +35,7 @@ init_gtk(void) /* initialise gobject */ init_pygobject(); + g_assert(pygobject_register_class != NULL); /* set the default python encoding to utf-8 */ PyUnicode_SetDefaultEncoding("utf-8"); |