From 55e8d3025a24479012202c4799925217983e3159 Mon Sep 17 00:00:00 2001 From: infirit Date: Thu, 10 Oct 2013 00:51:18 +0200 Subject: use GTK_API_VERSION for gir-scanner --- configure.ac | 1 + polkitgtkmate/Makefile.am | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 6224320..7ceb13a 100644 --- a/configure.ac +++ b/configure.ac @@ -19,6 +19,7 @@ LT_AGE=0 AC_SUBST(LT_CURRENT) AC_SUBST(LT_REVISION) AC_SUBST(LT_AGE) +AC_SUBST(GTK_API_VERSION) AC_PROG_CC AC_ISC_POSIX diff --git a/polkitgtkmate/Makefile.am b/polkitgtkmate/Makefile.am index 4d0932f..ff816c3 100644 --- a/polkitgtkmate/Makefile.am +++ b/polkitgtkmate/Makefile.am @@ -80,12 +80,12 @@ PolkitGtkMate-1.0.gir: libpolkit-gtk-mate-1.la $(G_IR_SCANNER) Makefile.am --namespace PolkitGtkMate \ --strip-prefix=Polkit \ --nsversion=1.0 \ - --include=Gtk-2.0 \ + --include=Gtk-${GTK_API_VERSION} \ --include=Polkit-1.0 \ --library=polkit-gtk-mate-1 \ --output $@ \ --pkg=polkit-gobject-1 \ - --pkg=gtk+-2.0 \ + --pkg=gtk+-${GTK_API_VERSION} \ --libtool=$(top_builddir)/libtool \ -I$(top_srcdir) \ -DPOLKIT_GTK_MATE_COMPILATION \ -- cgit v1.2.1