]> git.saurik.com Git - wxWidgets.git/commitdiff
build fix
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Sun, 25 Jan 2009 14:18:00 +0000 (14:18 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Sun, 25 Jan 2009 14:18:00 +0000 (14:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/mediactrlcmn.cpp
src/osx/carbon/app.cpp
src/osx/cocoa/utils.mm

index 79e6799352b7a2ced070b34f03f87dfde25ccf47..4dbdb06e78520b77289905192b07cf4d58f6b5f5 100644 (file)
@@ -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()
index 5a4c7a91ca3f5806590647c0748993940c99b197..3ad2d09ab0d92e83708c77d67a2d4cc722e4bcac 100644 (file)
@@ -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
index 2bd4e8142897c0227bc525e77f4e6250c5e48f10..48bc5c9a96732c2ff631ea075b5bb4ee4e22dc50 100644 (file)
@@ -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;
 }