projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
regenerated
[wxWidgets.git]
/
src
/
gtk1
/
combobox.cpp
diff --git
a/src/gtk1/combobox.cpp
b/src/gtk1/combobox.cpp
index 8369ebbf0fbfb8a8573e4efd41ea550ea263ece5..023caa971e8052f0b83ef9eb2d11fa43b4f24e61 100644
(file)
--- a/
src/gtk1/combobox.cpp
+++ b/
src/gtk1/combobox.cpp
@@
-111,7
+111,11
@@
bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value,
m_widget = gtk_combo_new();
// make it more useable
m_widget = gtk_combo_new();
// make it more useable
- gtk_combo_set_use_arrows_always(GTK_COMBO(m_widget), TRUE);
+ gtk_combo_set_use_arrows_always( GTK_COMBO(m_widget), TRUE );
+
+ // and case-sensitive
+ gtk_combo_set_case_sensitive( GTK_COMBO(m_widget), TRUE );
+
GtkWidget *list = GTK_COMBO(m_widget)->list;
GtkWidget *list = GTK_COMBO(m_widget)->list;
@@
-138,8
+142,6
@@
bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value,
PostCreation();
PostCreation();
- ApplyWidgetStyle();
-
ConnectWidget( GTK_COMBO(m_widget)->button );
if (!value.IsNull()) SetValue( value );
ConnectWidget( GTK_COMBO(m_widget)->button );
if (!value.IsNull()) SetValue( value );
@@
-579,6
+581,7
@@
void wxComboBox::OnChar( wxKeyEvent &event )
if ( FindString(value) == wxNOT_FOUND )
{
Append(value);
if ( FindString(value) == wxNOT_FOUND )
{
Append(value);
+ SetStringSelection(value);
// and generate the selected event for it
wxCommandEvent event( wxEVT_COMMAND_COMBOBOX_SELECTED, GetId() );
// and generate the selected event for it
wxCommandEvent event( wxEVT_COMMAND_COMBOBOX_SELECTED, GetId() );