fixing compiles under certain flags

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2008-09-23 10:00:53 +00:00
parent 07bfacf3a6
commit 01a33e9670
2 changed files with 12 additions and 4 deletions

View File

@@ -39,10 +39,6 @@ END_EVENT_TABLE()
#pragma mark -
#pragma mark Tool Implementation
#if wxOSX_USE_COCOA
#define wxOSX_USE_NATIVE_TOOLBAR 1
#endif
// ----------------------------------------------------------------------------
// private classes
// ----------------------------------------------------------------------------
@@ -162,6 +158,7 @@ public:
void UpdateLabel()
{
#if wxOSX_USE_NATIVE_TOOLBAR
if ( m_toolbarItem )
{
// strip mnemonics from the label for compatibility with the usual
@@ -174,6 +171,7 @@ public:
wxCFStringRef sh( GetShortHelp(), GetToolBarFontEncoding() );
[m_toolbarItem setToolTip:sh.AsNSString()];
}
#endif
}
void Action()
@@ -256,6 +254,8 @@ private:
#endif
};
#if wxOSX_USE_NATIVE_TOOLBAR
@interface wxNSToolbarItem : NSToolbarItem
{
wxToolBarTool* impl;
@@ -284,6 +284,8 @@ private:
@end
#endif
@interface wxNSToolBarButton : NSButton
{
@@ -298,6 +300,8 @@ private:
@end
#if wxOSX_USE_NATIVE_TOOLBAR
@implementation wxNSToolbarItem
- (id)initWithItemIdentifier: (NSString*) identifier
@@ -374,6 +378,8 @@ private:
@end
#endif
@implementation wxNSToolBarButton
- (id)initWithFrame:(NSRect)frame

View File

@@ -60,7 +60,9 @@ wxGLContext::~wxGLContext()
IMPLEMENT_CLASS(wxGLCanvas, wxWindow)
BEGIN_EVENT_TABLE(wxGLCanvas, wxWindow)
#if wxOSX_USE_CARBON
EVT_SIZE(wxGLCanvas::OnSize)
#endif
END_EVENT_TABLE()
wxGLCanvas::wxGLCanvas(wxWindow *parent,