Index: gobject/gobjectmodule.c
===================================================================
--- gobject/gobjectmodule.c	(Revision 688)
+++ gobject/gobjectmodule.c	(Arbeitskopie)
@@ -3089,6 +3089,20 @@
     return -2;
 }
 
+static PyObject *
+build_gerror( void )
+{
+    PyObject *dict;
+    
+    dict = PyDict_New();
+    /* This is a hack to work around the deprecation warning of
+     * BaseException.message in Python 2.6+.
+     * GError has also an "message" attribute.
+     */
+    PyDict_SetItemString(dict, "message", PyString_FromString(""));
+    
+    return PyErr_NewException("gobject.GError", PyExc_RuntimeError, dict);
+}
 
 static PyObject *
 _pyg_strv_from_gvalue(const GValue *value)
@@ -3491,7 +3505,7 @@
 						      pyobject_copy,
 						      pyobject_free);
 
-    gerror_exc = PyErr_NewException("gobject.GError", PyExc_RuntimeError,NULL);
+    gerror_exc = build_gerror();
     PyDict_SetItemString(d, "GError", gerror_exc);
 
     PyGObject_Type.tp_alloc = PyType_GenericAlloc;
