From 42ab7508e8e9d9383223245e8481ff926f92c93e Mon Sep 17 00:00:00 2001 From: Ron Lee Date: Fri, 5 May 2000 08:10:50 +0000 Subject: [PATCH] workaround for one gtk Combo horror git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/combobox.cpp | 1 + src/gtk1/combobox.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/gtk/combobox.cpp b/src/gtk/combobox.cpp index 40e9370a10..fe859bb2ee 100644 --- a/src/gtk/combobox.cpp +++ b/src/gtk/combobox.cpp @@ -577,6 +577,7 @@ void wxComboBox::OnChar( wxKeyEvent &event ) if ( FindString(value) == wxNOT_FOUND ) { Append(value); + SetStringSelection(value); // and generate the selected event for it wxCommandEvent event( wxEVT_COMMAND_COMBOBOX_SELECTED, GetId() ); diff --git a/src/gtk1/combobox.cpp b/src/gtk1/combobox.cpp index 40e9370a10..fe859bb2ee 100644 --- a/src/gtk1/combobox.cpp +++ b/src/gtk1/combobox.cpp @@ -577,6 +577,7 @@ void wxComboBox::OnChar( wxKeyEvent &event ) if ( FindString(value) == wxNOT_FOUND ) { Append(value); + SetStringSelection(value); // and generate the selected event for it wxCommandEvent event( wxEVT_COMMAND_COMBOBOX_SELECTED, GetId() );