From 4d1973b41cac86b367ddc7b03b6c3b42a957d411 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Tue, 08 May 2007 12:53:47 +0000 Subject: No need for a configure check; just use the GTK_CHECK_VERSION macro. Bug 2007-05-08 Christian Persch * configure.ac: * properties/ev-properties-view.c: No need for a configure check; just use the GTK_CHECK_VERSION macro. Bug #382438. svn path=/trunk/; revision=2440 --- diff --git a/ChangeLog b/ChangeLog index 9171b20..e88543a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-05-08 Christian Persch + + * configure.ac: + * properties/ev-properties-view.c: + + No need for a configure check; just use the GTK_CHECK_VERSION macro. + Bug #382438. + 2007-05-08 Carlos Garcia Campos * configure.ac: diff --git a/configure.ac b/configure.ac index 3af9939..f6b37be 100644 --- a/configure.ac +++ b/configure.ac @@ -443,11 +443,6 @@ if test "x$enable_impress" = "xyes"; then fi AC_SUBST(EVINCE_MIME_TYPES) -evince_save_LIBS=$LIBS -LIBS="$LIBS $FRONTEND_LIBS" -AC_CHECK_FUNCS(gtk_paper_size_get_paper_sizes) -LIBS=$evince_save_LIBS - AC_CONFIG_FILES([ backend/Makefile backend/comics/Makefile diff --git a/properties/ev-properties-view.c b/properties/ev-properties-view.c index 0df238a..3ebd368 100644 --- a/properties/ev-properties-view.c +++ b/properties/ev-properties-view.c @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -193,7 +194,7 @@ set_property (GladeXML *xml, Property property, const char *text) g_free (valid_text); } -#if HAVE_GTK_PAPER_SIZE_GET_PAPER_SIZES +#if GTK_CHECK_VERSION (2, 11, 0) static GtkUnit get_default_user_units (void) { @@ -296,7 +297,7 @@ ev_regular_paper_size (const EvDocumentInfo *info) return exact_size; } -#else +#else /* ! GTK 2.11.0 */ /* * All values are in mm. * Source: http://en.wikipedia.org/wiki/Paper_size @@ -430,7 +431,7 @@ ev_regular_paper_size (const EvDocumentInfo *info) } else return exact_size; } -#endif /* HAVE_GTK_PAPER_SIZE_GET_PAPER_SIZES */ +#endif /* GTK 2.11.0 */ void ev_properties_view_set_info (EvPropertiesView *properties, const EvDocumentInfo *info) -- cgit v0.9.1