Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/properties/ev-properties-view.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2007-05-08 12:53:47 (GMT)
committer Christian Persch <chpe@src.gnome.org>2007-05-08 12:53:47 (GMT)
commit4d1973b41cac86b367ddc7b03b6c3b42a957d411 (patch)
treeb7091c663868400e03a836d5ce314c6d669667a2 /properties/ev-properties-view.c
parent62e70405f426070ad2625accab9f9e286682d392 (diff)
No need for a configure check; just use the GTK_CHECK_VERSION macro. Bug
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
Diffstat (limited to 'properties/ev-properties-view.c')
-rw-r--r--properties/ev-properties-view.c7
1 files changed, 4 insertions, 3 deletions
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 <glib/gi18n.h>
#include <gtk/gtk.h>
+#include <gtk/gtkversion.h>
#include <glade/glade.h>
#include <time.h>
#include <sys/time.h>
@@ -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)