X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e4db172a3b318df9aff178eb6c5da149d56e0859..344ff08345eba81fcdcc55dd711ce6bc4bb747a3:/src/mac/carbon/listbox.cpp diff --git a/src/mac/carbon/listbox.cpp b/src/mac/carbon/listbox.cpp index ace8cfff04..bbe19045df 100644 --- a/src/mac/carbon/listbox.cpp +++ b/src/mac/carbon/listbox.cpp @@ -18,15 +18,15 @@ #ifndef WX_PRECOMP #include "wx/dynarray.h" #include "wx/log.h" + #include "wx/intl.h" + #include "wx/app.h" + #include "wx/utils.h" + #include "wx/button.h" + #include "wx/settings.h" #endif -#include "wx/app.h" -#include "wx/button.h" -#include "wx/settings.h" #include "wx/toplevel.h" -#include "wx/utils.h" - IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl) BEGIN_EVENT_TABLE(wxListBox, wxControl) @@ -516,7 +516,6 @@ OSStatus wxMacListBoxItem::GetSetData( wxMacDataItemBrowserControl *owner , OSStatus err = errDataBrowserPropertyNotSupported; wxListBox *list = wxDynamicCast( owner->GetPeer() , wxListBox ); wxCHECK_MSG( list != NULL , errDataBrowserPropertyNotSupported , wxT("Listbox expected")); - wxCheckListBox *checklist = wxDynamicCast( list , wxCheckListBox ); if ( !changeValue ) { @@ -718,7 +717,7 @@ void wxMacDataBrowserListControl::SetClientDataType(wxClientDataType clientDataI unsigned int wxMacDataBrowserListControl::MacGetCount() const { - return GetItemCount(wxMacDataBrowserRootContainer,false,kDataBrowserItemNoState); + return GetItemCount(wxMacDataBrowserRootContainer,false,kDataBrowserItemAnyState); } void wxMacDataBrowserListControl::MacDelete( unsigned int n ) @@ -958,4 +957,4 @@ static pascal void ListBoxDrawProc( #endif -#endif +#endif // wxUSE_LISTBOX