[gedit] Register python bindings with gio-types.defs



commit 52646452161693fd63ab304d7298d56b25ae4a28
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sat Jan 2 00:12:31 2010 +0100

    Register python bindings with gio-types.defs

 configure.ac                               |    5 +++++
 plugin-loaders/python/bindings/Makefile.am |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index cf8432e..92fc4ad 100644
--- a/configure.ac
+++ b/configure.ac
@@ -409,6 +409,10 @@ if test "x$have_python" != "xno"; then
 	PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
 	AC_MSG_RESULT([$PYGTK_DEFSDIR])
 
+	AC_MSG_CHECKING([for pygobject defs])
+	PYGOBJECT_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygobject-2.0`
+	AC_MSG_RESULT([$PYGOBJECT_DEFSDIR])
+
 	AC_MSG_CHECKING([for pygtk codegen])
 	PYGTK_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/codegen.py"
 	AC_MSG_RESULT([$PYGTK_CODEGEN])
@@ -418,6 +422,7 @@ if test "x$have_python" != "xno"; then
 	AC_MSG_RESULT([$PYGTK_H2DEF])
 
 	AC_SUBST([PYGTK_DEFSDIR])
+	AC_SUBST([PYGOBJECT_DEFSDIR])
 	AC_SUBST([PYGTK_CODEGEN])
 	AC_SUBST([PYGTK_H2DEF])
 
diff --git a/plugin-loaders/python/bindings/Makefile.am b/plugin-loaders/python/bindings/Makefile.am
index 3903d8e..47183a5 100644
--- a/plugin-loaders/python/bindings/Makefile.am
+++ b/plugin-loaders/python/bindings/Makefile.am
@@ -39,6 +39,7 @@ gedit.c: gedit.defs gedit.override geditplugin.override geditmessage.override $(
 		--register $(PYGTK_DEFSDIR)/gdk-types.defs \
 		--register $(PYGTK_DEFSDIR)/gtk-types.defs \
 		--register $(PYGTK_DEFSDIR)/gtksourceview2.defs \
+		--register $(PYGOBJECT_DEFSDIR)/gio-types.defs \
 		--override $*.override \
 		--prefix py$* $(<F) ) > $@ 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]