]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/listbox.cpp
removed read() declaration which resulted in a warning
[wxWidgets.git] / src / gtk1 / listbox.cpp
index 20c77eec98523983fb94b8b59dd7b27b30dddefc..8e5a52297f84c90154e08d4af36fda72ffc469bb 100644 (file)
@@ -667,6 +667,12 @@ void wxListBox::Clear()
     wxCHECK_RET( m_list != NULL, wxT("invalid listbox") );
 
     gtk_list_clear_items( m_list, 0, GetCount() );
+    
+    if ( GTK_LIST(m_list)->last_focus_child != NULL  )
+    {
+        // This should be NULL, I think.
+        GTK_LIST(m_list)->last_focus_child = NULL;
+    }
 
     if ( HasClientObjectData() )
     {