From fefcb864e35f595f82b6053a7a5857860eecbe69 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Thu, 17 Jul 2008 09:51:19 +0000 Subject: Use the prefix G_IO_ for stripping constants instead of just G_ Check so 2008-07-17 Johan Dahlin * 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, if they don't, just strip of the part of strip_prefix which matches. This removes the initial IO_* prefix for some constants in gio. Eg, gio.IO_ERROR_* -> gio.ERROR_* svn path=/trunk/; revision=817 --- gio/giomodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gio') diff --git a/gio/giomodule.c b/gio/giomodule.c index 6024258..7a24744 100644 --- a/gio/giomodule.c +++ b/gio/giomodule.c @@ -47,7 +47,7 @@ init_gio(void) init_pygobject(); pygio_register_classes(d); - pygio_add_constants(m, "G_"); + pygio_add_constants(m, "G_IO_"); } -- cgit