[aisleriot] build: Drop gtk+ req back to 3.4



commit 34e4b7bd4bb77c0c41f1f3b9c6ba169bfeb65f4b
Author: Christian Persch <chpe gnome org>
Date:   Sun Jun 2 18:54:09 2013 +0200

    build: Drop gtk+ req back to 3.4
    
    And instead just ifdef some code.

 configure.ac         |    2 +-
 src/ar-application.c |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8eec5de..ec59aae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -265,7 +265,7 @@ AM_CONDITIONAL([ENABLE_DEBUG_UI],[test "$enable_debug_ui" = "yes"])
 # ********************
 
 case "$with_gtk" in
-  3.0) GTK_REQUIRED=3.6.0
+  3.0) GTK_REQUIRED=3.4.0
        RSVG_REQUIRED=2.32.0
        LIBCANBERRA_GTK_REQUIRED=0.26
        LIBCANBERRA_GTK_PKGS="libcanberra-gtk3 >= $LIBCANBERRA_GTK_REQUIRED"
diff --git a/src/ar-application.c b/src/ar-application.c
index 0515126..65bf938 100644
--- a/src/ar-application.c
+++ b/src/ar-application.c
@@ -63,6 +63,10 @@ struct _ArApplicationPrivate
   gboolean freecell; /* unused */
 };
 
+#if !GTK_CHECK_VERSION (3, 6, 0)
+#define gtk_application_get_active_window(w) NULL
+#endif
+
 G_DEFINE_TYPE (ArApplication, ar_application, GTK_TYPE_APPLICATION)
 
 static void


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