2007-05-08 Christian Persch <chpe@gnome.org>
* 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
+2007-05-08 Christian Persch <chpe@gnome.org>
+
+ * 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 <carlosgc@gnome.org>
* configure.ac:
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
#include <glib/gi18n.h>
#include <gtk/gtk.h>
+#include <gtk/gtkversion.h>
#include <glade/glade.h>
#include <time.h>
#include <sys/time.h>
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)
{
return exact_size;
}
-#else
+#else /* ! GTK 2.11.0 */
/*
* All values are in mm.
* Source: http://en.wikipedia.org/wiki/Paper_size
} 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)