summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-07-17 09:59:17 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-07-17 09:59:17 +0000
commitfd7aa13d3d05e530b9a03b6bb9d7c3e1cc77b51b (patch)
tree9028766aec0ab2d09ed84fb0ffeaf113d29cc95b
parentfefcb864e35f595f82b6053a7a5857860eecbe69 (diff)
downloadpygobject-fd7aa13d3d05e530b9a03b6bb9d7c3e1cc77b51b.tar.gz
pygobject-fd7aa13d3d05e530b9a03b6bb9d7c3e1cc77b51b.tar.xz
pygobject-fd7aa13d3d05e530b9a03b6bb9d7c3e1cc77b51b.zip
Add gio.ERROR which maps to the G_IO_ERROR quark.
2008-07-17 Johan Dahlin <johan@gnome.org> * gio/giomodule.c (init_gio): Add gio.ERROR which maps to the G_IO_ERROR quark. svn path=/trunk/; revision=818
-rw-r--r--ChangeLog5
-rw-r--r--gio/giomodule.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 788bdf9..acf953c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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));
+
}