From f6dd3682a8b369687138cd430be157d11c9f28ba Mon Sep 17 00:00:00 2001 From: Jeremie Knuesel Date: Mon, 12 Feb 2018 11:05:46 +0100 Subject: [PATCH] Fix compilation for GTK+ < 3.22 --- zathura/zathura.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zathura/zathura.c b/zathura/zathura.c index d24a95d..3afb68b 100644 --- a/zathura/zathura.c +++ b/zathura/zathura.c @@ -176,7 +176,6 @@ zathura_update_view_ppi(zathura_t* zathura) } else { ppi = monitor_geom.width * 25.4 / width_mm; } -#endif #ifdef GDK_WINDOWING_WAYLAND /* work around apparend bug in GDK: on Wayland, monitor geometry doesn't @@ -195,6 +194,7 @@ zathura_update_view_ppi(zathura_t* zathura) #endif 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); }