From 1a12214a8c2ddd4e785918e4b19d282fa2ba0357 Mon Sep 17 00:00:00 2001 From: Jeremie Knuesel Date: Mon, 12 Feb 2018 14:50:14 +0100 Subject: [PATCH] Bump GTK+ to 3.22 --- README | 2 +- config.mk | 2 +- zathura/zathura.c | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README b/README index 046596f..87e16d4 100644 --- a/README +++ b/README @@ -5,7 +5,7 @@ girara user interface library and several document libraries. Requirements ------------ -gtk3 (>= 3.10) +gtk3 (>= 3.22) glib (>= 2.50) girara (>= 0.2.8) sqlite3 (optional, >= 3.5.9) diff --git a/config.mk b/config.mk index 5f0a99a..e7d174c 100644 --- a/config.mk +++ b/config.mk @@ -26,7 +26,7 @@ GLIB_MIN_VERSION = 2.50 GLIB_PKG_CONFIG_NAME = glib-2.0 # GTK GTK_VERSION_CHECK ?= 1 -GTK_MIN_VERSION = 3.10 +GTK_MIN_VERSION = 3.22 GTK_PKG_CONFIG_NAME = gtk+-3.0 # pkg-config binary diff --git a/zathura/zathura.c b/zathura/zathura.c index 3afb68b..299b5bd 100644 --- a/zathura/zathura.c +++ b/zathura/zathura.c @@ -157,7 +157,6 @@ zathura_update_view_ppi(zathura_t* zathura) double ppi = 0.0; -#if GTK_CHECK_VERSION(3,22,0) GdkMonitor* monitor = gdk_display_get_monitor_at_window(display, window); if (monitor == NULL) { return; @@ -194,7 +193,6 @@ 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); }