aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtkutil.h
diff options
context:
space:
mode:
authorLars Ingebrigtsen2017-07-16 16:50:57 +0200
committerLars Ingebrigtsen2017-07-17 16:58:57 +0200
commit36cf0791ba75ee16dfbedfe437567ec6dd945b8a (patch)
tree1a75dc2c06ea243360589018893953c613b7e1d7 /src/gtkutil.h
parent4198b4d985db77ad6ae372fa048250e93de5013c (diff)
downloademacs-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/gtkutil.h')
-rw-r--r--src/gtkutil.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gtkutil.h b/src/gtkutil.h
index a252cbef99c..f0f2981418c 100644
--- a/src/gtkutil.h
+++ b/src/gtkutil.h
@@ -143,8 +143,8 @@ extern void xg_set_toolkit_horizontal_scroll_bar_thumb (struct scroll_bar *bar,
143 int position, 143 int position,
144 int whole); 144 int whole);
145extern bool xg_event_is_for_scrollbar (struct frame *, const XEvent *); 145extern bool xg_event_is_for_scrollbar (struct frame *, const XEvent *);
146extern int xg_get_default_scrollbar_width (void); 146extern int xg_get_default_scrollbar_width (struct frame *f);
147extern int xg_get_default_scrollbar_height (void); 147extern int xg_get_default_scrollbar_height (struct frame *f);
148 148
149extern void update_frame_tool_bar (struct frame *f); 149extern void update_frame_tool_bar (struct frame *f);
150extern void free_frame_tool_bar (struct frame *f); 150extern void free_frame_tool_bar (struct frame *f);