]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/listbox.cpp
Updates to Indonesian translations by Rahmat Bambang.
[wxWidgets.git] / src / gtk / listbox.cpp
index 788f1f4cb22cd9438f2ca39f1faf143799fe3105..b3fcefba4119d15b612e4a22a770e8d93e463ef5 100644 (file)
@@ -404,7 +404,13 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id,
 
 wxListBox::~wxListBox()
 {
-    m_hasVMT = false;
+    if (m_treeview)
+    {
+        GTKDisconnect(m_treeview);
+        GtkTreeSelection* selection = gtk_tree_view_get_selection(m_treeview);
+        if (selection)
+            GTKDisconnect(selection);
+    }
 
     Clear();
 }