]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/button.mm
Add wxDataViewCtrl::SetRowHeight() and provide its generic implementation.
[wxWidgets.git] / src / osx / cocoa / button.mm
index 2eb0889fe250f7d0d224471f34246173550f4187..09f1f192dd223a8bfc05a93b08e628bcc9961684 100644 (file)
@@ -4,7 +4,7 @@
 // Author:      Stefan Csomor
 // Modified by:
 // Created:     1998-01-01
-// RCS-ID:      $Id: button.cpp 54845 2008-07-30 14:52:41Z SC $
+// RCS-ID:      $Id$
 // Copyright:   (c) Stefan Csomor
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -32,7 +32,7 @@ wxSize wxButton::DoGetBestSize() const
         return wxSize( 23 , 23 ) ;
 
     wxRect r ;
-    m_peer->GetBestRect(&r);
+    GetPeer()->GetBestRect(&r);
 
     wxSize sz = r.GetSize();
     sz.x  = sz.x  + MacGetLeftBorderSize() +
@@ -289,7 +289,7 @@ wxWidgetImplType* wxWidgetImpl::CreateBitmapButton( wxWindowMac* wxpeer,
 
     SetBezelStyleFromBorderFlags(v, style);
 
-    if (bitmap.Ok())
+    if (bitmap.IsOk())
         [v setImage:bitmap.GetNSImage() ];
 
     [v setButtonType:NSMomentaryPushInButton];