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 /include/vcl/weld.hxx | |
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 'include/vcl/weld.hxx')
-rw-r--r-- | include/vcl/weld.hxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index db1b6d519d1f..aab0dd469b55 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -319,8 +319,6 @@ protected: void signal_hadjustment_changed() { m_aHChangeHdl.Call(*this); } public: - virtual void set_user_managed_scrolling() = 0; - virtual void hadjustment_configure(int value, int lower, int upper, int step_increment, int page_increment, int page_size) = 0; @@ -2248,7 +2246,12 @@ public: virtual std::unique_ptr<Button> weld_button(const OString& id) = 0; virtual std::unique_ptr<MenuButton> weld_menu_button(const OString& id) = 0; virtual std::unique_ptr<Frame> weld_frame(const OString& id) = 0; - virtual std::unique_ptr<ScrolledWindow> weld_scrolled_window(const OString& id) = 0; + /* bUserManagedScrolling of true means that the automatic scrolling of the window is disabled + and the owner must specifically listen to adjustment changes and react appropiately to them. + */ + virtual std::unique_ptr<ScrolledWindow> weld_scrolled_window(const OString& id, + bool bUserManagedScrolling = false) + = 0; virtual std::unique_ptr<Notebook> weld_notebook(const OString& id) = 0; virtual std::unique_ptr<ToggleButton> weld_toggle_button(const OString& id) = 0; virtual std::unique_ptr<RadioButton> weld_radio_button(const OString& id) = 0; |