* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*/
-#ifdef HAVE_CONFIG_H
#include "config.h"
-#endif
-#include "ev-properties-view.h"
-#include "ev-document-fonts.h"
-
-#include <glib/gi18n.h>
-#include <gtk/gtk.h>
-#include <glade/glade.h>
-#include <time.h>
-#include <sys/time.h>
#include <string.h>
+#include <sys/time.h>
+#include <time.h>
#ifdef HAVE__NL_MEASUREMENT_MEASUREMENT
#include <langinfo.h>
#endif
+#include <glib/gi18n.h>
+#include <gtk/gtk.h>
+#include <glade/glade.h>
+
+#include "ev-properties-view.h"
+#include "ev-document-fonts.h"
+
typedef enum
{
TITLE_PROPERTY,
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 GTK_UNIT_MM; /* metric */
#endif
+ if (strcmp (e, "default:mm") == 0)
+ return GTK_UNIT_MM;
if (strcmp (e, "default:inch") == 0)
return GTK_UNIT_INCH;
- else if (strcmp (e, "default:mm") == 0)
- g_warning ("Whoever translated default:mm did so wrongly.\n");
+
+ g_warning ("Whoever translated default:mm did so wrongly.\n");
return GTK_UNIT_MM;
}
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)