[PolicyKit-gnome] Make --with-gtk work with introspection



commit f1cd8ab96c5735a41a82aa162e3590ff968ed585
Author: David Zeuthen <davidz redhat com>
Date:   Mon Feb 21 16:38:03 2011 -0500

    Make --with-gtk work with introspection
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 configure.ac          |    1 +
 polkitgtk/Makefile.am |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 41cbe58..2c49781 100644
--- a/configure.ac
+++ b/configure.ac
@@ -140,6 +140,7 @@ case "$with_gtk" in
        GTK_REQUIRED=3.0.0
        ;;
 esac
+AC_SUBST(GTK_API_VERSION)
 
 
 PKG_CHECK_MODULES(GTK, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED)
diff --git a/polkitgtk/Makefile.am b/polkitgtk/Makefile.am
index 66e96cb..275b167 100644
--- a/polkitgtk/Makefile.am
+++ b/polkitgtk/Makefile.am
@@ -80,12 +80,12 @@ PolkitGtk-1.0.gir: libpolkit-gtk-1.la $(G_IR_SCANNER) Makefile.am
 		--namespace PolkitGtk 				\
 		--strip-prefix=Polkit				\
 		--nsversion=1.0 				\
-		--include=Gtk-2.0 				\
+		--include=Gtk-$(GTK_API_VERSION)		\
 		--include=Polkit-1.0 				\
 		--library=polkit-gtk-1 				\
 		--output $@ 					\
 		--pkg=polkit-gobject-1				\
-		--pkg=gtk+-2.0 					\
+		--pkg=gtk+-$(GTK_API_VERSION)			\
 		--libtool=$(top_builddir)/libtool		\
                 -I$(top_srcdir)		 			\
 	        -DPOLKIT_GTK_COMPILATION                   	\



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