]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/checkbox.cpp
remove unnecessary include of wx/cairo.h
[wxWidgets.git] / src / gtk / checkbox.cpp
index 6c21e580a27d6a4dfd9575b0e2fcd108b857c927..21c4159d59d8706ef0be389452196c7141f22050 100644 (file)
@@ -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,