35b794a
diff -ur python-gtkextra/configure.in python-gtkextra-1.1.0/configure.in
35b794a
--- python-gtkextra/configure.in	2004-03-09 12:58:38.000000000 +0100
35b794a
+++ python-gtkextra-1.1.0/configure.in	2009-01-09 12:33:36.000000000 +0100
35b794a
@@ -69,6 +69,11 @@
35b794a
 AC_SUBST(PYGTK_DEFSDIR)
35b794a
 AC_MSG_RESULT($PYGTK_DEFSDIR)
35b794a
 
35b794a
+AC_MSG_CHECKING(PYGTK_CODEGENDIR)
35b794a
+PYGTK_CODEGENDIR=`$PKG_CONFIG --variable=codegendir pygtk-2.0`
35b794a
+AC_SUBST(PYGTK_CODEGENDIR)
35b794a
+AC_MSG_RESULT($PYGTK_CODEGENDIR)
35b794a
+
35b794a
 AC_ARG_ENABLE(numpy,
35b794a
   AC_HELP_STRING([--disable-numpy], [Disable numeric python features]),,
35b794a
   enable_numpy=yes)
35b794a
diff -ur python-gtkextra/gtkextra/_config.py.in python-gtkextra-1.1.0/gtkextra/_config.py.in
35b794a
--- python-gtkextra/gtkextra/_config.py.in	2002-12-30 21:42:13.000000000 +0100
35b794a
+++ python-gtkextra-1.1.0/gtkextra/_config.py.in	2009-01-09 12:35:17.000000000 +0100
35b794a
@@ -4,5 +4,5 @@
35b794a
 PKGDATADIR = string.replace('@datadir@/@PACKAGE@','${prefix}', PREFIX)
35b794a
 PYDIR= string.replace('@pythondir@','${prefix}', PREFIX)
35b794a
 VERSION='@VERSION@'
35b794a
-PYGTK_DEFSDIR='@PYGTK_DEFSDIR@'
35b794a
+PYGTK_CODEGENDIR='@PYGTK_CODEGENDIR@'
35b794a
 del string
35b794a
diff -ur python-gtkextra/gtkextra/mycodegen.py python-gtkextra-1.1.0/gtkextra/mycodegen.py
35b794a
--- python-gtkextra/gtkextra/mycodegen.py	2009-01-09 12:25:21.000000000 +0100
35b794a
+++ python-gtkextra-1.1.0/gtkextra/mycodegen.py	2009-01-09 12:35:26.000000000 +0100
c5cd148
@@ -6,7 +6,7 @@
c5cd148
 import _config
c5cd148
 import sys
c5cd148
 import os
c5cd148
-sys.path.append(os.path.join(_config.PYGTK_DEFSDIR, '../'))
35b794a
+sys.path.append(os.path.join(_config.PYGTK_CODEGENDIR, '../'))
c5cd148
 
c5cd148
 from codegen.argtypes import matcher
c5cd148
 import codegen.codegen