X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a625c5b6c0d1c0f137bfbbdd98608c194017da75..d968078adbfb147e913b9a33fc54242a36f117ce:/src/gtk/listbox.cpp?ds=inline diff --git a/src/gtk/listbox.cpp b/src/gtk/listbox.cpp index f1e5f96b1e..d871800407 100644 --- a/src/gtk/listbox.cpp +++ b/src/gtk/listbox.cpp @@ -203,6 +203,7 @@ gtk_listbox_key_press_callback( GtkWidget *WXUNUSED(widget), int index = listbox->GetSelection(); if (index != wxNOT_FOUND) { + wxCommandEvent event(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, listbox->GetId() ); event.SetEventObject( listbox ); @@ -221,11 +222,12 @@ gtk_listbox_key_press_callback( GtkWidget *WXUNUSED(widget), else if ( listbox->HasClientUntypedData() ) event.SetClientData( gtk_tree_entry_get_userdata(entry) ); - bool ret = listbox->HandleWindowEvent( event ); + /* bool ret = */ listbox->HandleWindowEvent( event ); g_object_unref (entry); - if (!ret) +// wxMac and wxMSW always invoke default action +// if (!ret) { // DClick not handled -> invoke default action wxWindow *tlw = wxGetTopLevelParent( listbox );