diff options
author | ZenWalker <[email protected]> | 2017-08-20 03:29:36 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-20 17:00:09 +0200 |
commit | 444cec08e38299e5d6ae9489ae74d02f4e4a5f97 (patch) | |
tree | 186b13a66e39402e816a14db612f8dd4b89ee811 /libdocument/ev-document-misc.h | |
parent | 14e0759b76e3213334ae8be367382695f9fe8d55 (diff) | |
download | atril-444cec08e38299e5d6ae9489ae74d02f4e4a5f97.tar.bz2 atril-444cec08e38299e5d6ae9489ae74d02f4e4a5f97.tar.xz |
avoid gdk_screen_get_primary_monitor/gdk_screen_get_monitor_scale_factor
Diffstat (limited to 'libdocument/ev-document-misc.h')
-rw-r--r-- | libdocument/ev-document-misc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libdocument/ev-document-misc.h b/libdocument/ev-document-misc.h index e6480ed0..25e3b8ce 100644 --- a/libdocument/ev-document-misc.h +++ b/libdocument/ev-document-misc.h @@ -58,7 +58,11 @@ cairo_surface_t *ev_document_misc_surface_rotate_and_scale (cairo_surface_t *sur void ev_document_misc_invert_surface (cairo_surface_t *surface); void ev_document_misc_invert_pixbuf (GdkPixbuf *pixbuf); +#if GTK_CHECK_VERSION (3, 22, 0) +gdouble ev_document_misc_get_screen_dpi (GdkScreen *screen, GdkMonitor *monitor); +#else gdouble ev_document_misc_get_screen_dpi (GdkScreen *screen, gint monitor); +#endif gchar *ev_document_misc_format_date (GTime utime); |