[Libreoffice-commits] core.git: vcl/unx

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri May 21 12:57:52 UTC 2021


 vcl/unx/gtk3/gtkinst.cxx |   12 ++++++++++++
 1 file changed, 12 insertions(+)

New commits:
commit cae01a2e6b0186f0d44cb114e08e3ca461558989
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri May 21 12:43:28 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri May 21 14:57:10 2021 +0200

    gtk[3|4]: fix infinite toggling in draw
    
    regression from...
    
    commit 1815aa9472080b9dac263d393b9c922dd16351fe
    Author: Caolán McNamara <caolanm at 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 at redhat.com>

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);


More information about the Libreoffice-commits mailing list