Make wxCheckListBox call event.SetString() on all platforms, not just wxMSW. Mention again, that wxCommandEvent::IsChecked() cannot be used for it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -35,6 +35,7 @@ static void gtk_checklist_toggled(GtkCellRendererToggle * WXUNUSED(renderer),
|
||||
listbox->GetId() );
|
||||
new_event.SetEventObject( listbox );
|
||||
new_event.SetInt( gtk_tree_path_get_indices(path)[0] );
|
||||
new_event.SetString( listbox->GetString( new_event.GetInt() ));
|
||||
gtk_tree_path_free(path);
|
||||
listbox->Check( new_event.GetInt(), !listbox->IsChecked(new_event.GetInt()));
|
||||
listbox->HandleWindowEvent( new_event );
|
||||
|
Reference in New Issue
Block a user