diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2017-07-16 16:50:57 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2017-07-17 16:58:57 +0200 |
commit | 36cf0791ba75ee16dfbedfe437567ec6dd945b8a (patch) | |
tree | 1a75dc2c06ea243360589018893953c613b7e1d7 /src/xfns.c | |
parent | 4198b4d985db77ad6ae372fa048250e93de5013c (diff) | |
download | emacs-36cf0791ba75ee16dfbedfe437567ec6dd945b8a.tar.gz |
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.
Diffstat (limited to 'src/xfns.c')
-rw-r--r-- | src/xfns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xfns.c b/src/xfns.c index d8bf9747191..2f8c9c25416 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -2062,7 +2062,7 @@ x_set_scroll_bar_default_width (struct frame *f) int unit = FRAME_COLUMN_WIDTH (f); #ifdef USE_TOOLKIT_SCROLL_BARS #ifdef USE_GTK - int minw = xg_get_default_scrollbar_width (); + int minw = xg_get_default_scrollbar_width (f); #else int minw = 16; #endif @@ -2083,7 +2083,7 @@ x_set_scroll_bar_default_height (struct frame *f) int height = FRAME_LINE_HEIGHT (f); #ifdef USE_TOOLKIT_SCROLL_BARS #ifdef USE_GTK - int min_height = xg_get_default_scrollbar_height (); + int min_height = xg_get_default_scrollbar_height (f); #else int min_height = 16; #endif |