]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/combobox.cpp
Compilation fix: include wx/button.h from wx/commandlinkbutton.h.
[wxWidgets.git] / src / gtk / combobox.cpp
index 69c1373dde8c9ac096f4ba53a93f8184524d8ea3..8ff0dc6b7976a735b44be44e6ff141e0cb67d60e 100644 (file)
@@ -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
 // ----------------------------------------------------------------------------