From 742caff3b80b199020ea3d66b5f162cc43ec6174 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 18 Jul 2017 15:31:28 +0200 Subject: [PATCH] Don't use gtk_widget_get_scale_factor on old GTK3 versions * src/gtkutil.c (xg_get_scale): gtk_widget_get_scale_factor is only present since GTK 3.10. --- src/gtkutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtkutil.c b/src/gtkutil.c index 03319726f09..0c8395efe9b 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -223,7 +223,7 @@ xg_get_gdk_scale (void) int xg_get_scale (struct frame *f) { -#ifdef HAVE_GTK3 +#if GTK_CHECK_VERSION (3, 10, 0) if (FRAME_GTK_WIDGET (f)) return gtk_widget_get_scale_factor (FRAME_GTK_WIDGET (f)); #endif -- 2.39.2