Index: gtk/Makefile.am
===================================================================
--- gtk/Makefile.am	(revision 3036)
+++ gtk/Makefile.am	(working copy)
@@ -192,6 +192,7 @@
 	   $(PYGTK_CODEGEN_DEFINES) \
 	    -I $(srcdir) \
 	    --py_ssize_t-clean \
+	    --register $(PYGOBJECT_DEFSDIR)/gio-types.defs \
 	    --register $(top_srcdir)/pango-types.defs \
 	    --register $(top_srcdir)/atk-types.defs \
 	    --register gdk-types.defs \
Index: configure.ac
===================================================================
--- configure.ac	(revision 3036)
+++ configure.ac	(working copy)
@@ -143,6 +143,9 @@
 PYGOBJECT_DATADIR=`$PKG_CONFIG --variable=datadir pygobject-2.0`
 AC_SUBST(PYGOBJECT_DATADIR)
 
+AC_SUBST(PYGOBJECT_DEFSDIR)
+PYGOBJECT_DEFSDIR=`$PKG_CONFIG --variable defsdir pygobject-2.0`
+
 PYGOBJECT_FIXXREF="$PYTHON `$PKG_CONFIG --variable=fixxref pygobject-2.0`"
 AC_SUBST(PYGOBJECT_FIXXREF)
 
