mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 14:46:00 +01:00
Bump GTK+ to 3.22
This commit is contained in:
parent
f6dd3682a8
commit
1a12214a8c
3 changed files with 2 additions and 4 deletions
2
README
2
README
|
@ -5,7 +5,7 @@ girara user interface library and several document libraries.
|
||||||
|
|
||||||
Requirements
|
Requirements
|
||||||
------------
|
------------
|
||||||
gtk3 (>= 3.10)
|
gtk3 (>= 3.22)
|
||||||
glib (>= 2.50)
|
glib (>= 2.50)
|
||||||
girara (>= 0.2.8)
|
girara (>= 0.2.8)
|
||||||
sqlite3 (optional, >= 3.5.9)
|
sqlite3 (optional, >= 3.5.9)
|
||||||
|
|
|
@ -26,7 +26,7 @@ GLIB_MIN_VERSION = 2.50
|
||||||
GLIB_PKG_CONFIG_NAME = glib-2.0
|
GLIB_PKG_CONFIG_NAME = glib-2.0
|
||||||
# GTK
|
# GTK
|
||||||
GTK_VERSION_CHECK ?= 1
|
GTK_VERSION_CHECK ?= 1
|
||||||
GTK_MIN_VERSION = 3.10
|
GTK_MIN_VERSION = 3.22
|
||||||
GTK_PKG_CONFIG_NAME = gtk+-3.0
|
GTK_PKG_CONFIG_NAME = gtk+-3.0
|
||||||
|
|
||||||
# pkg-config binary
|
# pkg-config binary
|
||||||
|
|
|
@ -157,7 +157,6 @@ zathura_update_view_ppi(zathura_t* zathura)
|
||||||
|
|
||||||
double ppi = 0.0;
|
double ppi = 0.0;
|
||||||
|
|
||||||
#if GTK_CHECK_VERSION(3,22,0)
|
|
||||||
GdkMonitor* monitor = gdk_display_get_monitor_at_window(display, window);
|
GdkMonitor* monitor = gdk_display_get_monitor_at_window(display, window);
|
||||||
if (monitor == NULL) {
|
if (monitor == NULL) {
|
||||||
return;
|
return;
|
||||||
|
@ -194,7 +193,6 @@ 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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue