X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b526f9d64d63028d749998fea1ce407439c779f8..8fe8b421fc1e5bb71e7ce3e2272d747ac6df079c:/src/gtk/combobox.cpp diff --git a/src/gtk/combobox.cpp b/src/gtk/combobox.cpp index 69c1373dde..8ff0dc6b79 100644 --- a/src/gtk/combobox.cpp +++ b/src/gtk/combobox.cpp @@ -276,6 +276,14 @@ wxComboBox::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant)) return GetDefaultAttributesFromGTKWidget(gtk_combo_box_entry_new, true); } +void wxComboBox::SetValue(const wxString& value) +{ + if ( HasFlag(wxCB_READONLY) ) + SetStringSelection(value); + else + wxTextEntry::SetValue(value); +} + // ---------------------------------------------------------------------------- // standard event handling // ----------------------------------------------------------------------------