]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/listbox.cpp
don't create non-existing groups in HasEntry()
[wxWidgets.git] / src / mac / carbon / listbox.cpp
index d238da7cd0c6b85f9b0f6c33b1097787d4a6db52..5a0858ee35e58b7a9ce7ed322a9dce844f2a69cf 100644 (file)
 #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"
+    #include "wx/arrstr.h"
+    #include "wx/toplevel.h"
 #endif
 
-#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)
@@ -34,7 +34,6 @@ END_EVENT_TABLE()
 
 #include "wx/mac/uma.h"
 #include "wx/dynarray.h"
-#include "wx/arrstr.h"
 
 // ============================================================================
 // list box control implementation
@@ -516,7 +515,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 +716,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 +956,4 @@ static pascal void ListBoxDrawProc(
 #endif
 
 
-#endif
+#endif // wxUSE_LISTBOX