[gedit] Only enable GSEAL for gtk+ 3.0 (2.90)
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Only enable GSEAL for gtk+ 3.0 (2.90)
- Date: Tue, 1 Jun 2010 22:06:13 +0000 (UTC)
commit 0f2d1f7ecae645eb46eef12f0e46c03942de7805
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Wed Jun 2 00:05:21 2010 +0200
Only enable GSEAL for gtk+ 3.0 (2.90)
configure.ac | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9fdb901..d72f627 100644
--- a/configure.ac
+++ b/configure.ac
@@ -497,14 +497,18 @@ AC_ARG_ENABLE(deprecations,
[enable_deprecations=$enableval], [])
if test "$enable_deprecations" = "yes"; then
- DISABLE_DEPRECATED_CFLAGS="\
--DGSEAL_ENABLE \
+ DISABLE_DEPRECATED_CFLAGS="\
-DG_DISABLE_DEPRECATED \
-DGDK_DISABLE_DEPRECATED \
-DGTK_DISABLE_DEPRECATED \
-DGDK_PIXBUF_DISABLE_DEPRECATED \
-DGNOME_DISABLE_DEPRECATED"
- AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
+
+ if $PKG_CONFIG --atleast-version 2.90 $GTK_REQUIRED; then
+ DISABLE_DEPRECATED_CFLAGS="$DISABLE_DEPRECATED_CFLAGS -DGSEAL_ENABLE"
+ fi
+
+ AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
fi
# on win32 plugins must be able to resolve all symbols at link time
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]