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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Dec 21 07:53:07 UTC 2018


 vcl/unx/gtk3/gtk3gtkinst.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 35c3b8cccacbe9f68ed123fff83f42ff35085ce6
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Dec 20 14:21:42 2018 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri Dec 21 08:52:43 2018 +0100

    hook up m_nHAdjustChangedSignalId
    
    to the other places that need to deal with it
    
    found by loplugin:unusedfields
    
    Change-Id: Ice46c1fce19afcac92854a5a8a204b71d178977f
    Reviewed-on: https://gerrit.libreoffice.org/65491
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 2f0966fb6e40..deed77f11858 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -3129,6 +3129,7 @@ public:
     virtual void disable_notify_events() override
     {
         g_signal_handler_block(m_pVAdjustment, m_nVAdjustChangedSignalId);
+        g_signal_handler_block(m_pHAdjustment, m_nHAdjustChangedSignalId);
         GtkInstanceContainer::disable_notify_events();
     }
 
@@ -3136,6 +3137,7 @@ public:
     {
         GtkInstanceContainer::enable_notify_events();
         g_signal_handler_unblock(m_pVAdjustment, m_nVAdjustChangedSignalId);
+        g_signal_handler_unblock(m_pHAdjustment, m_nHAdjustChangedSignalId);
     }
 
     virtual ~GtkInstanceScrolledWindow() override
@@ -3161,6 +3163,7 @@ public:
             enable_notify_events();
         }
         g_signal_handler_disconnect(m_pVAdjustment, m_nVAdjustChangedSignalId);
+        g_signal_handler_disconnect(m_pHAdjustment, m_nHAdjustChangedSignalId);
     }
 };
 


More information about the Libreoffice-commits mailing list