From 945eac794c1b3039dddafc53c5f104f7ba88fadf Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Sun, 25 Jan 2009 14:18:00 +0000 Subject: [PATCH] build fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/mediactrlcmn.cpp | 4 ++-- src/osx/carbon/app.cpp | 2 +- src/osx/cocoa/utils.mm | 24 ++++++++++++------------ 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/common/mediactrlcmn.cpp b/src/common/mediactrlcmn.cpp index 79e6799352..4dbdb06e78 100644 --- a/src/common/mediactrlcmn.cpp +++ b/src/common/mediactrlcmn.cpp @@ -513,13 +513,13 @@ bool wxMediaBackendCommonBase::SendStopEvent() { wxMediaEvent theEvent(wxEVT_MEDIA_STOP, m_ctrl->GetId()); - return !m_ctrl->ProcessEvent(theEvent) || theEvent.IsAllowed(); + return !m_ctrl->GetEventHandler()->ProcessEvent(theEvent) || theEvent.IsAllowed(); } void wxMediaBackendCommonBase::QueueEvent(wxEventType evtType) { wxMediaEvent theEvent(evtType, m_ctrl->GetId()); - m_ctrl->AddPendingEvent(theEvent); + m_ctrl->GetEventHandler()->AddPendingEvent(theEvent); } void wxMediaBackendCommonBase::QueuePlayEvent() diff --git a/src/osx/carbon/app.cpp b/src/osx/carbon/app.cpp index 5a4c7a91ca..3ad2d09ab0 100644 --- a/src/osx/carbon/app.cpp +++ b/src/osx/carbon/app.cpp @@ -253,7 +253,7 @@ short wxApp::MacHandleAEQuit(const WXEVENTREF WXUNUSED(event) , WXEVENTREF WXUNU if ( win ) { wxCommandEvent exitEvent(wxEVT_COMMAND_MENU_SELECTED, s_macExitMenuItemId); - if (!win->ProcessEvent(exitEvent)) + if (!win->GetEventHandler()->ProcessEvent(exitEvent)) win->Close(true) ; } else diff --git a/src/osx/cocoa/utils.mm b/src/osx/cocoa/utils.mm index 2bd4e81428..48bc5c9a96 100644 --- a/src/osx/cocoa/utils.mm +++ b/src/osx/cocoa/utils.mm @@ -56,7 +56,7 @@ void wxMacWakeUp() } #endif // wxUSE_BASE - + #if wxUSE_GUI @interface wxNSAppController : NSObject @@ -100,7 +100,7 @@ void wxMacWakeUp() return YES; } -/* +/* Allowable return values are: NSTerminateNow - it is ok to proceed with termination NSTerminateCancel - the application should not be terminated @@ -113,7 +113,7 @@ void wxMacWakeUp() if ( win ) { wxCommandEvent exitEvent(wxEVT_COMMAND_MENU_SELECTED, wxApp::s_macExitMenuItemId); - if (!win->ProcessEvent(exitEvent)) + if (!win->GetEventHandler()->ProcessEvent(exitEvent)) win->Close(true) ; } else @@ -146,7 +146,7 @@ bool wxApp::DoInitGui() { wxNSAppController* controller = [[wxNSAppController alloc] init]; [[NSApplication sharedApplication] setDelegate:controller]; - + NSAppleEventManager *appleEventManager = [NSAppleEventManager sharedAppleEventManager]; [appleEventManager setEventHandler:controller andSelector:@selector(handleGetURLEvent:withReplyEvent:) forEventClass:kInternetEventClass andEventID:kAEGetURL]; @@ -171,7 +171,7 @@ void wxClientDisplayRect(int *x, int *y, int *width, int *height) *width = r.GetWidth(); if ( height ) *height = r.GetHeight(); - + } void wxGetMousePosition( int* x, int* y ) @@ -240,23 +240,23 @@ wxBitmap wxWindowDCImpl::DoGetAsBitmap(const wxRect *subrect) const // call this method when a Blit is performed with it as a source. if (!m_window) return wxNullBitmap; - + wxSize sz = m_window->GetSize(); - + int left = subrect != NULL ? subrect->x : 0 ; int top = subrect != NULL ? subrect->y : 0 ; int width = subrect != NULL ? subrect->width : sz.x; int height = subrect != NULL ? subrect->height : sz.y ; - + NSRect rect = NSMakeRect(left, top, width, height ); NSView* view = (NSView*) m_window->GetHandle(); [view lockFocus]; - // we use this method as other methods force a repaint, and this method can be + // we use this method as other methods force a repaint, and this method can be // called from OnPaint, even with the window's paint dc as source (see wxHTMLWindow) NSBitmapImageRep *rep = [[[NSBitmapImageRep alloc] initWithFocusedViewRect: [view bounds]] retain]; [view unlockFocus]; - - CGImageRef cgImageRef = (CGImageRef)[rep CGImage]; + + CGImageRef cgImageRef = (CGImageRef)[rep CGImage]; wxBitmap bitmap(CGImageGetWidth(cgImageRef) , CGImageGetHeight(cgImageRef) ); CGRect r = CGRectMake( 0 , 0 , CGImageGetWidth(cgImageRef) , CGImageGetHeight(cgImageRef) ); @@ -265,7 +265,7 @@ wxBitmap wxWindowDCImpl::DoGetAsBitmap(const wxRect *subrect) const CGImageRelease(cgImageRef); cgImageRef = NULL; [rep release]; - + return bitmap; } -- 2.45.2