diff --git a/include/wx/gtk/combobox.h b/include/wx/gtk/combobox.h index 0c4240bd0c..2fc432ae5d 100644 --- a/include/wx/gtk/combobox.h +++ b/include/wx/gtk/combobox.h @@ -94,11 +94,7 @@ public: virtual void Popup(); virtual void Dismiss(); - virtual void Clear() wxOVERRIDE - { - wxTextEntry::Clear(); - wxItemContainer::Clear(); - } + virtual void Clear() wxOVERRIDE; // See wxComboBoxBase discussion of IsEmpty(). bool IsListEmpty() const { return wxItemContainer::IsEmpty(); } diff --git a/src/gtk/combobox.cpp b/src/gtk/combobox.cpp index 7813ab40c3..d507865f53 100644 --- a/src/gtk/combobox.cpp +++ b/src/gtk/combobox.cpp @@ -295,6 +295,12 @@ wxComboBox::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant)) #endif } +void wxComboBox::Clear() +{ + wxTextEntry::Clear(); + wxItemContainer::Clear(); +} + void wxComboBox::SetValue(const wxString& value) { if ( HasFlag(wxCB_READONLY) )