vcl/unx/gtk3/gtk3gtkinst.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+)
New commits: commit 6c05d28d1446d805933ea7dd924dc94f890a7acb Author: Caolán McNamara <[email protected]> Date: Tue May 1 12:05:28 2018 +0100 disable/enable notify for GtkInstanceButton Change-Id: I477d5eed61d82cf711df3120c92f6011177f88ab Reviewed-on: https://gerrit.libreoffice.org/53686 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> 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"); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
