summaryrefslogtreecommitdiff
path: root/src/gui_gtk.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-17 20:43:43 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-17 20:43:43 +0200
commit203ec7760d255d9f92950c8779ddfc587d7896e0 (patch)
treee793725ed09467a01a1012bcfe1effea44fe7c39 /src/gui_gtk.c
parentf5be8cdb77786f93c23237d7d8162feca92067e2 (diff)
downloadvim-git-203ec7760d255d9f92950c8779ddfc587d7896e0.tar.gz
patch 8.2.1228: scrollbars not flush against the window edges when maximisedv8.2.1228
Problem: Scrollbars not flush against the window edges when maximised. Solution: Add padding. (Ken Takata, closes #5602, closes #6466)
Diffstat (limited to 'src/gui_gtk.c')
-rw-r--r--src/gui_gtk.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gui_gtk.c b/src/gui_gtk.c
index fa63bf910..aaebf3056 100644
--- a/src/gui_gtk.c
+++ b/src/gui_gtk.c
@@ -1008,6 +1008,22 @@ gui_mch_set_scrollbar_pos(scrollbar_T *sb, int x, int y, int w, int h)
gtk_form_move_resize(GTK_FORM(gui.formwin), sb->id, x, y, w, h);
}
+ int
+gui_mch_get_scrollbar_xpadding(void)
+{
+ // TODO: Calculate the padding for adjust scrollbar position when the
+ // Window is maximized.
+ return 0;
+}
+
+ int
+gui_mch_get_scrollbar_ypadding(void)
+{
+ // TODO: Calculate the padding for adjust scrollbar position when the
+ // Window is maximized.
+ return 0;
+}
+
/*
* Take action upon scrollbar dragging.
*/