diff options
author | James Henstridge <james@daa.com.au> | 2001-09-15 02:56:00 +0000 |
---|---|---|
committer | James Henstridge <jamesh@src.gnome.org> | 2001-09-15 02:56:00 +0000 |
commit | 1e801ad8e15f0b50ba89286a3becb00ef0d48785 (patch) | |
tree | 1c492f5d95848923bdcb3005da87348f062d3323 /pangomodule.c | |
parent | cc1f40213f8c52d4640dc95c3ec4b2e102eee23a (diff) | |
download | pygtk-1e801ad8e15f0b50ba89286a3becb00ef0d48785.tar.gz |
don't import GTK.
2001-09-15 James Henstridge <james@daa.com.au>
* gtk/__init__.py (TRUE): don't import GTK.
* gtk/gtkmodule.c (init_gtk): same here.
* pangomodule.c (initpango): add constants to the pango module.
* codegen/codegen.py (write_enums): new function that writes a
function to add constants for all the enums and flags in the
parser.
(write_source): call write_enums().
Diffstat (limited to 'pangomodule.c')
-rw-r--r-- | pangomodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pangomodule.c b/pangomodule.c index 38e9895e..3d8a64f3 100644 --- a/pangomodule.c +++ b/pangomodule.c @@ -8,6 +8,7 @@ /* include any extra headers needed here */ void pypango_register_classes(PyObject *d); +void pypango_add_constants(PyObject *module, const gchar *strip_prefix); extern PyMethodDef pypango_functions[]; DL_EXPORT(void) @@ -23,6 +24,7 @@ initpango(void) init_pygobject(); pypango_register_classes(d); + pypango_add_constants(m, "PANGO_"); /* add anything else to the module dictionary (such as constants) */ |