1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-28 01:00:52 -07:00

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.
This commit is contained in:
Lars Ingebrigtsen 2017-07-18 15:31:28 +02:00
parent a2ee81911b
commit 742caff3b8

View file

@ -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