diff options
| author | Lars Ingebrigtsen | 2017-07-16 16:50:57 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2017-07-17 16:58:57 +0200 |
| commit | 36cf0791ba75ee16dfbedfe437567ec6dd945b8a (patch) | |
| tree | 1a75dc2c06ea243360589018893953c613b7e1d7 /src/xfns.c | |
| parent | 4198b4d985db77ad6ae372fa048250e93de5013c (diff) | |
| download | emacs-36cf0791ba75ee16dfbedfe437567ec6dd945b8a.tar.gz emacs-36cf0791ba75ee16dfbedfe437567ec6dd945b8a.zip | |
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) | |||
| 2062 | int unit = FRAME_COLUMN_WIDTH (f); | 2062 | int unit = FRAME_COLUMN_WIDTH (f); |
| 2063 | #ifdef USE_TOOLKIT_SCROLL_BARS | 2063 | #ifdef USE_TOOLKIT_SCROLL_BARS |
| 2064 | #ifdef USE_GTK | 2064 | #ifdef USE_GTK |
| 2065 | int minw = xg_get_default_scrollbar_width (); | 2065 | int minw = xg_get_default_scrollbar_width (f); |
| 2066 | #else | 2066 | #else |
| 2067 | int minw = 16; | 2067 | int minw = 16; |
| 2068 | #endif | 2068 | #endif |
| @@ -2083,7 +2083,7 @@ x_set_scroll_bar_default_height (struct frame *f) | |||
| 2083 | int height = FRAME_LINE_HEIGHT (f); | 2083 | int height = FRAME_LINE_HEIGHT (f); |
| 2084 | #ifdef USE_TOOLKIT_SCROLL_BARS | 2084 | #ifdef USE_TOOLKIT_SCROLL_BARS |
| 2085 | #ifdef USE_GTK | 2085 | #ifdef USE_GTK |
| 2086 | int min_height = xg_get_default_scrollbar_height (); | 2086 | int min_height = xg_get_default_scrollbar_height (f); |
| 2087 | #else | 2087 | #else |
| 2088 | int min_height = 16; | 2088 | int min_height = 16; |
| 2089 | #endif | 2089 | #endif |