diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-01 12:05:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-05-01 14:21:49 +0200 |
commit | 6c05d28d1446d805933ea7dd924dc94f890a7acb (patch) | |
tree | 542ed9e870d3c89c7da2c53752a507e388f26d49 /vcl/unx/gtk3/gtk3gtkinst.cxx | |
parent | f1c465af38d2f8f2c941742c160f75151e4f55cd (diff) |
disable/enable notify for GtkInstanceButton
Change-Id: I477d5eed61d82cf711df3120c92f6011177f88ab
Reviewed-on: https://gerrit.libreoffice.org/53686
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx/gtk3/gtk3gtkinst.cxx')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index 134dd540f973..e961a9c6f041 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -2519,6 +2519,18 @@ public: m_aClickHdl = Link<Button&, void>(); } + virtual void disable_notify_events() override + { + g_signal_handler_block(m_pButton, m_nSignalId); + GtkInstanceContainer::disable_notify_events(); + } + + virtual void enable_notify_events() override + { + GtkInstanceContainer::enable_notify_events(); + g_signal_handler_unblock(m_pButton, m_nSignalId); + } + virtual ~GtkInstanceButton() override { g_object_steal_data(G_OBJECT(m_pButton), "g-lo-GtkInstanceButton"); |