block signal handlers, instead of disconnecting, to temporarily disable them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -555,9 +555,8 @@ void wxRadioBox::GtkDisableEvents()
|
||||
wxRadioBoxButtonsInfoList::compatibility_iterator node = m_buttonsInfo.GetFirst();
|
||||
while (node)
|
||||
{
|
||||
g_signal_handlers_disconnect_by_func (node->GetData()->button,
|
||||
(gpointer) gtk_radiobutton_clicked_callback,
|
||||
this);
|
||||
g_signal_handlers_block_by_func(node->GetData()->button,
|
||||
(gpointer)gtk_radiobutton_clicked_callback, this);
|
||||
|
||||
node = node->GetNext();
|
||||
}
|
||||
@@ -568,8 +567,8 @@ void wxRadioBox::GtkEnableEvents()
|
||||
wxRadioBoxButtonsInfoList::compatibility_iterator node = m_buttonsInfo.GetFirst();
|
||||
while (node)
|
||||
{
|
||||
g_signal_connect (node->GetData()->button, "clicked",
|
||||
G_CALLBACK (gtk_radiobutton_clicked_callback), this);
|
||||
g_signal_handlers_unblock_by_func(node->GetData()->button,
|
||||
(gpointer)gtk_radiobutton_clicked_callback, this);
|
||||
|
||||
node = node->GetNext();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user