summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-05-21 12:43:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-05-21 14:57:10 +0200
commitcae01a2e6b0186f0d44cb114e08e3ca461558989 (patch)
tree4967487a490f7b9eb63e2216e2451a0e64f9f0b8
parent12362fc496102b344dedef0a6ba130ba80b94149 (diff)
gtk[3|4]: fix infinite toggling in draw
regression from... commit 1815aa9472080b9dac263d393b9c922dd16351fe Author: Caolán McNamara <caolanm@redhat.com> Date: Tue May 18 20:44:56 2021 +0100 GtkCheckButton no longer inherits from GtkToggleButton Change-Id: I933c2fb0ea39b0a650ec57031ddcc2b61250d0d4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115915 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/unx/gtk3/gtkinst.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index 3d213d62a194..8a4ca74f266f 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -9880,6 +9880,18 @@ public:
#endif
}
+ virtual void disable_notify_events() override
+ {
+ g_signal_handler_block(m_pCheckButton, m_nSignalId);
+ GtkInstanceButton::disable_notify_events();
+ }
+
+ virtual void enable_notify_events() override
+ {
+ GtkInstanceButton::enable_notify_events();
+ g_signal_handler_unblock(m_pCheckButton, m_nSignalId);
+ }
+
virtual ~GtkInstanceCheckButton() override
{
g_signal_handler_disconnect(m_pCheckButton, m_nSignalId);