--- gimp-2.10.22/configure.ac.orig	2015-10-13 14:54:35.164396900 +0300
+++ gimp-2.10.22/configure.ac	2015-10-13 15:01:58.768840100 +0300
@@ -2297,7 +2297,7 @@
 # pygtk-codegen-2.0 and the defsdir are used for the `dist` target,
 # regardless of whether Python is enabled or not. Their absence don't
 # break simple builds but we still check them.
-AC_PATH_PROG(PYGTK_CODEGEN, pygtk-codegen-2.0, no)
+AC_PATH_PROG(PYGOBJECT_CODEGEN, pygobject-codegen-2.0, no)
 
 AC_MSG_CHECKING(for pygtk defs)
 PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
--- gimp-2.8.14/plug-ins/pygimp/Makefile.am.orig	2015-10-13 15:00:41.547754900 +0300
+++ gimp-2.8.14/plug-ins/pygimp/Makefile.am	2015-10-13 15:01:12.574025700 +0300
@@ -166,7 +166,7 @@
 
 .defs.c:
 	(cd $(srcdir) \
-	 && $(PYGTK_CODEGEN) \
+	 && $(PYGOBJECT_CODEGEN) \
 	    --override $*.override \
 	    --register $(PYGTK_DEFSDIR)/gdk-types.defs \
 	    --register $(PYGTK_DEFSDIR)/gtk-types.defs \
