diff options
| author | Johan Dahlin <johan@gnome.org> | 2008-07-17 09:51:19 +0000 |
|---|---|---|
| committer | Johan Dahlin <johan@src.gnome.org> | 2008-07-17 09:51:19 +0000 |
| commit | fefcb864e35f595f82b6053a7a5857860eecbe69 (patch) | |
| tree | 8176829598c900e5ad18b74a463ffdd0b04785c1 /gio | |
| parent | 5150b46218e113795279f7708002ef156972eeb8 (diff) | |
| download | pygobject-fefcb864e35f595f82b6053a7a5857860eecbe69.tar.gz pygobject-fefcb864e35f595f82b6053a7a5857860eecbe69.tar.xz pygobject-fefcb864e35f595f82b6053a7a5857860eecbe69.zip | |
Use the prefix G_IO_ for stripping constants instead of just G_ Check so
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,
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
Diffstat (limited to 'gio')
| -rw-r--r-- | gio/giomodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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_"); } |
