X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=properties%2Fev-properties-view.c;h=6a1eb413962436765c28e1648b30ad63fcba6a9b;hb=14def5e0c1c11cee1523e10c72df74f4cf5e451d;hp=3ebd368105e35db519c0de76b04971d3483b72b2;hpb=4d1973b41cac86b367ddc7b03b6c3b42a957d411;p=evince.git diff --git a/properties/ev-properties-view.c b/properties/ev-properties-view.c index 3ebd3681..6a1eb413 100644 --- a/properties/ev-properties-view.c +++ b/properties/ev-properties-view.c @@ -18,25 +18,23 @@ * 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 -#include -#include -#include -#include -#include #include +#include +#include #ifdef HAVE__NL_MEASUREMENT_MEASUREMENT #include #endif +#include +#include +#include + +#include "ev-properties-view.h" +#include "ev-document-fonts.h" + typedef enum { TITLE_PROPERTY, @@ -216,10 +214,12 @@ 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; }