]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/listbox.cpp
Use "GBK" as alternative name for CP936 encoding.
[wxWidgets.git] / src / gtk / listbox.cpp
index d76523b68111b840d93de6d76dbf365b3a262c5e..b6945a51f48e40b20211621532ccfc5b22e5b2b3 100644 (file)
@@ -210,7 +210,7 @@ static gint gtk_listbox_sort_callback(GtkTreeModel * WXUNUSED(model),
     wxCHECK_MSG(entry2, 0, wxT("Could not get second entry"));
 
     //We compare collate keys here instead of calling g_utf8_collate
-    //as it is rather slow (and even the docs reccommend this)
+    //as it is rather slow (and even the docs recommend this)
     return strcmp(gtk_tree_entry_get_collate_key(entry1),
                   gtk_tree_entry_get_collate_key(entry2)) >= 0;
 }
@@ -497,6 +497,8 @@ void wxListBox::DoClear()
     gtk_list_store_clear( m_liststore ); /* well, THAT was easy :) */
 
     GTKEnableEvents();
+
+    UpdateOldSelections();
 }
 
 void wxListBox::DoDeleteOneItem(unsigned int n)