X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=properties%2Fev-properties-view.c;h=3ebd368105e35db519c0de76b04971d3483b72b2;hb=133c3527888180e7cb50fa915215668da629e987;hp=0df238aaba8ee201e8adc4a7cfd95f4f732b1635;hpb=1cd64c8488e0ec0cafcac4f5c81367798f797f30;p=evince.git diff --git a/properties/ev-properties-view.c b/properties/ev-properties-view.c index 0df238aa..3ebd3681 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)