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:
parent
a2ee81911b
commit
742caff3b8
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue