sd/source/ui/animations/CustomAnimationPane.cxx | 7 ++++++- sd/source/ui/inc/CustomAnimationPane.hxx | 1 + 2 files changed, 7 insertions(+), 1 deletion(-)
New commits: commit 7bce577cca9e6ca24879affa6398f8fda840d921 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed May 19 14:37:10 2021 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed May 19 18:23:21 2021 +0200 use toggle instead of click for CheckButton Change-Id: I0cbe6cd1b93557ceba535a835c4a199761ca5f00 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115812 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx index 485d4de91e3d..2c7df6d9242a 100644 --- a/sd/source/ui/animations/CustomAnimationPane.cxx +++ b/sd/source/ui/animations/CustomAnimationPane.cxx @@ -182,7 +182,7 @@ void CustomAnimationPane::initialize() mxPBMoveUp->connect_clicked( LINK( this, CustomAnimationPane, implClickHdl ) ); mxPBMoveDown->connect_clicked( LINK( this, CustomAnimationPane, implClickHdl ) ); mxPBPlay->connect_clicked( LINK( this, CustomAnimationPane, implClickHdl ) ); - mxCBAutoPreview->connect_clicked( LINK( this, CustomAnimationPane, implClickHdl ) ); + mxCBAutoPreview->connect_toggled( LINK( this, CustomAnimationPane, implToggleHdl ) ); mxLBCategory->connect_changed( LINK(this, CustomAnimationPane, UpdateAnimationLB) ); mxMFStartDelay->connect_value_changed( LINK(this, CustomAnimationPane, DelayModifiedHdl) ); mxMFStartDelay->connect_focus_out(LINK( this, CustomAnimationPane, DelayLoseFocusHdl)); @@ -2241,6 +2241,11 @@ sal_Int32 CustomAnimationPane::fillAnimationLB( bool bHasText ) return nFirstEffect; } +IMPL_LINK(CustomAnimationPane, implToggleHdl, weld::ToggleButton&, rBtn, void) +{ + implControlHdl(&rBtn); +} + IMPL_LINK(CustomAnimationPane, implClickHdl, weld::Button&, rBtn, void) { implControlHdl(&rBtn); diff --git a/sd/source/ui/inc/CustomAnimationPane.hxx b/sd/source/ui/inc/CustomAnimationPane.hxx index ff6fa75609e1..80d2aa4eef10 100644 --- a/sd/source/ui/inc/CustomAnimationPane.hxx +++ b/sd/source/ui/inc/CustomAnimationPane.hxx @@ -102,6 +102,7 @@ private: DECL_LINK( implControlListBoxHdl, weld::ComboBox&, void ); DECL_LINK( implClickHdl, weld::Button&, void ); + DECL_LINK( implToggleHdl, weld::ToggleButton&, void ); DECL_LINK( implPropertyHdl, LinkParamNone*, void ); DECL_LINK( EventMultiplexerListener, tools::EventMultiplexerEvent&, void ); DECL_LINK( lateInitCallback, Timer *, void ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits