summaryrefslogtreecommitdiffstats
path: root/glib/pyglib.c
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-07-26 13:48:46 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-07-26 13:48:46 +0000
commit73bb2db55342c2b5e22ad87e14903c92352932b4 (patch)
tree1a5e42f4a10a3c942cab0d62b9218d24bed53b05 /glib/pyglib.c
parent4cd2081ae3d8adacd4256742be9e90714783c242 (diff)
downloadpygobject-73bb2db55342c2b5e22ad87e14903c92352932b4.tar.gz
pygobject-73bb2db55342c2b5e22ad87e14903c92352932b4.tar.xz
pygobject-73bb2db55342c2b5e22ad87e14903c92352932b4.zip
gobject -> glib
2008-07-26 Johan Dahlin <johan@gnome.org> * glib/pygiochannel.c (py_io_channel_shutdown), (py_io_channel_set_buffer_size), (py_io_channel_get_buffer_size), (py_io_channel_set_buffered), (py_io_channel_get_buffered), (py_io_channel_set_encoding), (py_io_channel_get_encoding), (py_io_channel_read_chars), (py_io_channel_write_chars), (py_io_channel_write_lines), (py_io_channel_flush), (py_io_channel_set_flags), (py_io_channel_get_flags), (py_io_channel_get_buffer_condition), (py_io_channel_set_close_on_unref), (py_io_channel_add_watch), (py_io_channel_win32_poll), (py_io_channel_win32_make_pollfd), (py_io_channel_read_line), (py_io_channel_read_lines), (py_io_channel_seek), (py_io_channel_init): * glib/pyglib.c (pyglib_gerror_exception_check): * glib/pygoptioncontext.c (pyg_option_context_init): * glib/pygoptiongroup.c (check_if_owned): * glib/pygsource.c (pyg_idle_init), (pyg_timeout_init), (pyg_poll_fd_init): gobject -> glib svn path=/trunk/; revision=873
Diffstat (limited to 'glib/pyglib.c')
-rw-r--r--glib/pyglib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/glib/pyglib.c b/glib/pyglib.c
index ac6ec42..24327f1 100644
--- a/glib/pyglib.c
+++ b/glib/pyglib.c
@@ -272,7 +272,7 @@ pyglib_error_check(GError **error)
* raised exception is not a GError then PyErr_Print() is called.
*
* Returns: 0 if no exception has been raised, -1 if it is a
- * valid gobject.GError, -2 otherwise.
+ * valid glib.GError, -2 otherwise.
*/
gboolean
pyglib_gerror_exception_check(GError **error)
@@ -302,20 +302,20 @@ pyglib_gerror_exception_check(GError **error)
py_message = PyObject_GetAttrString(value, "message");
if (!py_message || !_PyUnicode_Check(py_message)) {
- bad_gerror_message = "gobject.GError instances must have a 'message' string attribute";
+ bad_gerror_message = "glib.GError instances must have a 'message' string attribute";
goto bad_gerror;
}
py_domain = PyObject_GetAttrString(value, "domain");
if (!py_domain || !_PyUnicode_Check(py_domain)) {
- bad_gerror_message = "gobject.GError instances must have a 'domain' string attribute";
+ bad_gerror_message = "glib.GError instances must have a 'domain' string attribute";
Py_DECREF(py_message);
goto bad_gerror;
}
py_code = PyObject_GetAttrString(value, "code");
if (!py_code || !_PyLong_Check(py_code)) {
- bad_gerror_message = "gobject.GError instances must have a 'code' int attribute";
+ bad_gerror_message = "glib.GError instances must have a 'code' int attribute";
Py_DECREF(py_message);
Py_DECREF(py_domain);
goto bad_gerror;
@@ -331,7 +331,7 @@ pyglib_gerror_exception_check(GError **error)
bad_gerror:
Py_DECREF(value);
- g_set_error(error, g_quark_from_static_string("pygobject"), 0, bad_gerror_message);
+ g_set_error(error, g_quark_from_static_string("pyglib"), 0, bad_gerror_message);
PyErr_SetString(PyExc_ValueError, bad_gerror_message);
PyErr_Print();
return -2;