X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bcd055ae108a30299fa278f3fe774f52414eb3df..01cb1c26171efc494b94d77e4351362bb0eb2e7d:/src/motif/choice.cpp diff --git a/src/motif/choice.cpp b/src/motif/choice.cpp index a25d112e25..e0afa97dd9 100644 --- a/src/motif/choice.cpp +++ b/src/motif/choice.cpp @@ -18,7 +18,8 @@ #define XtParent XTPARENT #endif -// For compilers that support precompilation, includes "wx.h". +#include "wx/defs.h" + #include "wx/choice.h" #include "wx/utils.h" @@ -171,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 @@ -225,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)) @@ -516,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))