Remove usage of the GDK_SCALE variable
commit36cf0791ba75ee16dfbedfe437567ec6dd945b8a
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 16 Jul 2017 14:50:57 +0000 (16 16:50 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 17 Jul 2017 14:58:57 +0000 (17 16:58 +0200)
tree1a75dc2c06ea243360589018893953c613b7e1d7
parent4198b4d985db77ad6ae372fa048250e93de5013c
Remove usage of the GDK_SCALE variable

* src/gtkutil.c (xg_get_gdk_scale): Remove.
(xg_get_default_scrollbar_height)
(xg_get_default_scrollbar_width): Pass in a frame to check for
scaling.
(xg_frame_set_char_size): Use the API for querying scale
instead of looking at the GDK_SCALE variable.
(xg_get_default_scrollbar_width): Ditto.
(xg_get_default_scrollbar_height): Ditto.
(xg_update_scrollbar_pos): Ditto.

* src/xfns.c (x_set_scroll_bar_default_height): Pass in the
frame to get the width.
src/gtkutil.c
src/gtkutil.h
src/xfns.c