summaryrefslogtreecommitdiff
path: root/vcl/source/control/scrbar.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-02 16:44:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-03 20:23:49 +0200
commit6c12f6dca251ba583297090def8aa9597a818c14 (patch)
tree8437a70e0df8c00684d8f2bee45796f562b44d1e /vcl/source/control/scrbar.cxx
parentadc15ce09e5f7fbcf5857238a9898f96da5acb9f (diff)
tdf#117388 use native scrollbar under gtk in writer
with the motivation that for gtk4 theming for vcl scrollbar isn't available, so it looks super yuck but this should also support the long-press scrolling thing under gtk3 as a side effect. Change-Id: Iada5a66087d5aa982f9213d7ec0a05f6177f4e66 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137750 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/control/scrbar.cxx')
-rw-r--r--vcl/source/control/scrbar.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx
index 79fb1d4c11df..2994fa0e9b61 100644
--- a/vcl/source/control/scrbar.cxx
+++ b/vcl/source/control/scrbar.cxx
@@ -1419,6 +1419,11 @@ Size ScrollBar::getCurrentCalcSize() const
return aCtrlRegion.GetSize();
}
+bool ScrollBar::Inactive() const
+{
+ return !IsEnabled() || !IsInputEnabled() || IsInModalMode();
+}
+
void ScrollBarBox::ImplInit(vcl::Window* pParent, WinBits nStyle)
{
Window::ImplInit( pParent, nStyle, nullptr );