Fix compilation for GTK+ < 3.22

This commit is contained in:
Jeremie Knuesel 2018-02-12 11:05:46 +01:00
parent 55055758fa
commit f6dd3682a8

View file

@ -176,7 +176,6 @@ zathura_update_view_ppi(zathura_t* zathura)
} else { } else {
ppi = monitor_geom.width * 25.4 / width_mm; ppi = monitor_geom.width * 25.4 / width_mm;
} }
#endif
#ifdef GDK_WINDOWING_WAYLAND #ifdef GDK_WINDOWING_WAYLAND
/* work around apparend bug in GDK: on Wayland, monitor geometry doesn't /* work around apparend bug in GDK: on Wayland, monitor geometry doesn't
@ -195,6 +194,7 @@ zathura_update_view_ppi(zathura_t* zathura)
#endif #endif
girara_debug("monitor width: %d mm, pixels: %d, ppi: %f", width_mm, monitor_geom.width, ppi); girara_debug("monitor width: %d mm, pixels: %d, ppi: %f", width_mm, monitor_geom.width, ppi);
#endif
zathura_document_set_viewport_ppi(zathura->document, ppi); zathura_document_set_viewport_ppi(zathura->document, ppi);
} }