Mercurial > vim
comparison src/gui_gtk.c @ 21355:fcccc29bd386 v8.2.1228
patch 8.2.1228: scrollbars not flush against the window edges when maximised
Commit: https://github.com/vim/vim/commit/203ec7760d255d9f92950c8779ddfc587d7896e0
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 17 20:43:43 2020 +0200
patch 8.2.1228: scrollbars not flush against the window edges when maximised
Problem: Scrollbars not flush against the window edges when maximised.
Solution: Add padding. (Ken Takata, closes https://github.com/vim/vim/issues/5602, closes https://github.com/vim/vim/issues/6466)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 17 Jul 2020 20:45:07 +0200 |
parents | 3ff714d765ba |
children | ef7f63b97855 |
comparison
equal
deleted
inserted
replaced
21354:428b1c6355eb | 21355:fcccc29bd386 |
---|---|
1006 { | 1006 { |
1007 if (sb->id != NULL) | 1007 if (sb->id != NULL) |
1008 gtk_form_move_resize(GTK_FORM(gui.formwin), sb->id, x, y, w, h); | 1008 gtk_form_move_resize(GTK_FORM(gui.formwin), sb->id, x, y, w, h); |
1009 } | 1009 } |
1010 | 1010 |
1011 int | |
1012 gui_mch_get_scrollbar_xpadding(void) | |
1013 { | |
1014 // TODO: Calculate the padding for adjust scrollbar position when the | |
1015 // Window is maximized. | |
1016 return 0; | |
1017 } | |
1018 | |
1019 int | |
1020 gui_mch_get_scrollbar_ypadding(void) | |
1021 { | |
1022 // TODO: Calculate the padding for adjust scrollbar position when the | |
1023 // Window is maximized. | |
1024 return 0; | |
1025 } | |
1026 | |
1011 /* | 1027 /* |
1012 * Take action upon scrollbar dragging. | 1028 * Take action upon scrollbar dragging. |
1013 */ | 1029 */ |
1014 static void | 1030 static void |
1015 adjustment_value_changed(GtkAdjustment *adjustment, gpointer data) | 1031 adjustment_value_changed(GtkAdjustment *adjustment, gpointer data) |