In order to avoid using a too new Gtk API. Taken from virt-viewer 4c4a43c61db60ac815c0bc66730fa0a9a1571103 --- v2: new patch --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 817aaab..ce80d88 100644 --- a/configure.ac +++ b/configure.ac @@ -124,6 +124,7 @@ AC_ARG_WITH([gtk], case "$with_gtk" in 3.0) GTK_REQUIRED=3.10 + GTK_ENCODED_VERSION="GDK_VERSION_3_10" ;; no) AS_IF([test x$enable_gtk_doc = xyes], @@ -134,7 +135,9 @@ AC_SUBST([GTK_REQUIRED]) AM_CONDITIONAL([WITH_GTK],[test "$with_gtk" != "no"]) AS_IF([test "x$with_gtk" != "xno"], - [PKG_CHECK_MODULES(GTK, gtk+-3.0 >= $GTK_REQUIRED epoxy)]) + [PKG_CHECK_MODULES(GTK, gtk+-3.0 >= $GTK_REQUIRED epoxy)] + [GTK_CFLAGS="$GTK_CFLAGS -DGDK_VERSION_MIN_REQUIRED=$GTK_ENCODED_VERSION \ + -DGDK_VERSION_MAX_ALLOWED=$GTK_ENCODED_VERSION"]) AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) SPICE_GTK_REQUIRES="${SPICE_GTK_REQUIRES} gtk+-3.0 >= $GTK_REQUIRED" -- 2.8.0 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel