diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-10-06 11:23:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-10-06 16:47:04 +0200 |
commit | f1f33b332a0b4ada8ac8ff885fc2efee768091a6 (patch) | |
tree | ba0c323cf00f66290a3a7cd3a18b8af2a4780ee8 /formula | |
parent | d15aa807be1c595dad9abc1dea04bb922570015a (diff) |
move set_user_managed_scrolling to an initial weld argument
gtk is creating a11y objects on widgets changing parents so manage when that
can happen to avoid premature creation of custom widget a11y objects
Change-Id: I4879a93a897b2e4084cf6af0c9c0b0f0c1062254
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104025
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/ui/dlg/parawin.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/formula/source/ui/dlg/parawin.cxx b/formula/source/ui/dlg/parawin.cxx index 93b50777c20d..454af53891fe 100644 --- a/formula/source/ui/dlg/parawin.cxx +++ b/formula/source/ui/dlg/parawin.cxx @@ -42,7 +42,7 @@ ParaWin::ParaWin(weld::Container* pParent,IControlReferenceHandler* _pDlg) , m_sRequired(ForResId(STR_REQUIRED)) , m_xBuilder(Application::CreateBuilder(pParent, "formula/ui/parameter.ui")) , m_xContainer(m_xBuilder->weld_container("ParameterPage")) - , m_xSlider(m_xBuilder->weld_scrolled_window("scrollbar")) + , m_xSlider(m_xBuilder->weld_scrolled_window("scrollbar", true)) , m_xParamGrid(m_xBuilder->weld_widget("paramgrid")) , m_xGrid(m_xBuilder->weld_widget("grid")) , m_xFtEditDesc(m_xBuilder->weld_label("editdesc")) @@ -90,7 +90,6 @@ ParaWin::ParaWin(weld::Container* pParent,IControlReferenceHandler* _pDlg) nEdFocus = NOT_FOUND; nActiveLine = 0; - m_xSlider->set_user_managed_scrolling(); m_xSlider->connect_vadjustment_changed(LINK(this, ParaWin, ScrollHdl)); InitArgInput( 0, *m_xFtArg1, *m_xBtnFx1, *m_xEdArg1, *m_xRefBtn1); |