disconnect "toggled" signal in dtor when style has wxALIGN_RIGHT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
eaa8686b71
commit
7af131ab0e
2 changed files with 8 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ class WXDLLIMPEXP_CORE wxCheckBox : public wxCheckBoxBase
|
|||
{
|
||||
public:
|
||||
wxCheckBox();
|
||||
~wxCheckBox();
|
||||
wxCheckBox( wxWindow *parent, wxWindowID id, const wxString& label,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize, long style = 0,
|
||||
|
|
|
|||
|
|
@ -91,6 +91,13 @@ static void gtk_checkbox_toggled_callback(GtkWidget *widget, wxCheckBox *cb)
|
|||
|
||||
wxCheckBox::wxCheckBox()
|
||||
{
|
||||
m_widgetCheckbox = NULL;
|
||||
}
|
||||
|
||||
wxCheckBox::~wxCheckBox()
|
||||
{
|
||||
if (m_widgetCheckbox && m_widgetCheckbox != m_widget)
|
||||
GTKDisconnect(m_widgetCheckbox);
|
||||
}
|
||||
|
||||
bool wxCheckBox::Create(wxWindow *parent,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue