diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gio/giomodule.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,6 +1,11 @@ 2008-07-17 Johan Dahlin <johan@gnome.org> * gio/giomodule.c (init_gio): + Add gio.ERROR which maps to the G_IO_ERROR quark. + +2008-07-17 Johan Dahlin <johan@gnome.org> + + * gio/giomodule.c (init_gio): Use the prefix G_IO_ for stripping constants instead of just G_ * gobject/gobjectmodule.c (pyg_constant_strip_prefix): Check so the fist part of name and strip_prefix are the same, diff --git a/gio/giomodule.c b/gio/giomodule.c index 7a24744..e7c852c 100644 --- a/gio/giomodule.c +++ b/gio/giomodule.c @@ -49,5 +49,7 @@ init_gio(void) pygio_register_classes(d); pygio_add_constants(m, "G_IO_"); + PyModule_AddStringConstant(m, "ERROR", g_quark_to_string(G_IO_ERROR)); + } |