diff options
author | Johan Dahlin <johan@src.gnome.org> | 2006-07-23 15:02:18 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2006-07-23 15:02:18 +0000 |
commit | 89d569d07deebc33e9e7a3ca4251056af38d5cbd (patch) | |
tree | 33d2243283b6841d36ba2b2b17784e624e2c259d /gtk/gtkmodule.c | |
parent | 30510d904960bef4c9382aac264b052739b4b237 (diff) | |
download | pygtk-89d569d07deebc33e9e7a3ca4251056af38d5cbd.tar.gz |
Revert dynamic namespaces, it is not possible to solve it without breaking
* Makefile.am:
* gtk/Makefile.am:
* gtk/__init__.py:
* gtk/_gtk.py:
* gtk/_lazyutils.py:
* gtk/deprecation.py:
* gtk/gtk.override:
* gtk/gtkmodule.c: (init_gtk):
* gtk/libglademodule.c: (initglade):
Revert dynamic namespaces, it is not possible
to solve it without breaking the ABI.
Diffstat (limited to 'gtk/gtkmodule.c')
-rw-r--r-- | gtk/gtkmodule.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkmodule.c b/gtk/gtkmodule.c index 4a3a3acb..921a0b81 100644 --- a/gtk/gtkmodule.c +++ b/gtk/gtkmodule.c @@ -206,7 +206,7 @@ init_pycairo(void) } DL_EXPORT(void) -init_gtkimpl(void) +init_gtk(void) { PyObject *m, *d, *tuple, *o; @@ -225,7 +225,7 @@ init_gtkimpl(void) pygobject_register_sinkfunc(GTK_TYPE_INVISIBLE, sink_gtkinvisible); pygobject_register_sinkfunc(GTK_TYPE_OBJECT, sink_gtkobject); - m = Py_InitModule("gtk._gtkimpl", pygtk_functions); + m = Py_InitModule("gtk._gtk", pygtk_functions); d = PyModule_GetDict(m); /* gtk+ version */ @@ -242,6 +242,7 @@ init_gtkimpl(void) _pygtk_register_boxed_types(d); pygtk_register_classes(d); + pygtk_add_constants(m, "GTK_"); pygtk_add_extra_constants(m); pygtk_add_stock_items(d); |