X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6045f99ba2bf267172a11f262fea8dedb0a75ee..a696db453c79ff58509195244bcf260dfdf13c81:/src/motif/choice.cpp diff --git a/src/motif/choice.cpp b/src/motif/choice.cpp index 9cfe04c8d1..e0afa97dd9 100644 --- a/src/motif/choice.cpp +++ b/src/motif/choice.cpp @@ -172,7 +172,7 @@ wxChoice::~wxChoice() } } -void wxChoice::Append(const wxString& item) +int wxChoice::DoAppend(const wxString& item) { Widget w = XtVaCreateManagedWidget (wxStripMenuCodes(item), #if USE_GADGETS @@ -226,6 +226,8 @@ void wxChoice::Append(const wxString& item) m_clientList.Insert( m_clientList.Item(m_noStrings-1), (wxObject*) NULL ); m_noStrings ++; + + return Number() - 1; } void wxChoice::Delete(int WXUNUSED(n)) @@ -517,11 +519,13 @@ int wxChoice::GetCount() const return Number(); } +/* int wxChoice::DoAppend(const wxString& item) { Append(item); return GetCount() - 1; } +*/ // Just appends, doesn't yet insert void wxChoice::DoInsertItems(const wxArrayString& items, int WXUNUSED(pos))