VirtualBox

Ignore:
Timestamp:
Aug 28, 2014 11:31:23 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95745
Message:

FE/Qt: Mac OS X: Runtime UI: UICocoaApplication API update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp

    r52382 r52509  
    203203            darwinEnableTransienceSupport(this);
    204204        /* Register to native fullscreen notifications: */
    205         UICocoaApplication::instance()->registerToNativeNotification("NSWindowWillEnterFullScreenNotification", this,
    206                                                                      UIMachineWindow::handleNativeNotification);
    207         UICocoaApplication::instance()->registerToNativeNotification("NSWindowDidEnterFullScreenNotification", this,
    208                                                                      UIMachineWindow::handleNativeNotification);
    209         UICocoaApplication::instance()->registerToNativeNotification("NSWindowWillExitFullScreenNotification", this,
    210                                                                      UIMachineWindow::handleNativeNotification);
    211         UICocoaApplication::instance()->registerToNativeNotification("NSWindowDidExitFullScreenNotification", this,
    212                                                                      UIMachineWindow::handleNativeNotification);
    213         UICocoaApplication::instance()->registerToNativeNotification("NSWindowDidFailToEnterFullScreenNotification", this,
    214                                                                      UIMachineWindow::handleNativeNotification);
     205        UICocoaApplication::instance()->registerToNotificationOfWindow("NSWindowWillEnterFullScreenNotification", this,
     206                                                                       UIMachineWindow::handleNativeNotification);
     207        UICocoaApplication::instance()->registerToNotificationOfWindow("NSWindowDidEnterFullScreenNotification", this,
     208                                                                       UIMachineWindow::handleNativeNotification);
     209        UICocoaApplication::instance()->registerToNotificationOfWindow("NSWindowWillExitFullScreenNotification", this,
     210                                                                       UIMachineWindow::handleNativeNotification);
     211        UICocoaApplication::instance()->registerToNotificationOfWindow("NSWindowDidExitFullScreenNotification", this,
     212                                                                       UIMachineWindow::handleNativeNotification);
     213        UICocoaApplication::instance()->registerToNotificationOfWindow("NSWindowDidFailToEnterFullScreenNotification", this,
     214                                                                       UIMachineWindow::handleNativeNotification);
    215215    }
    216216#endif /* Q_WS_MAC */
     
    259259    {
    260260        /* Unregister from native fullscreen notifications: */
    261         UICocoaApplication::instance()->unregisterFromNativeNotification("NSWindowWillEnterFullScreenNotification", this);
    262         UICocoaApplication::instance()->unregisterFromNativeNotification("NSWindowDidEnterFullScreenNotification", this);
    263         UICocoaApplication::instance()->unregisterFromNativeNotification("NSWindowWillExitFullScreenNotification", this);
    264         UICocoaApplication::instance()->unregisterFromNativeNotification("NSWindowDidExitFullScreenNotification", this);
    265         UICocoaApplication::instance()->unregisterFromNativeNotification("NSWindowDidFailToEnterFullScreenNotification", this);
     261        UICocoaApplication::instance()->unregisterFromNotificationOfWindow("NSWindowWillEnterFullScreenNotification", this);
     262        UICocoaApplication::instance()->unregisterFromNotificationOfWindow("NSWindowDidEnterFullScreenNotification", this);
     263        UICocoaApplication::instance()->unregisterFromNotificationOfWindow("NSWindowWillExitFullScreenNotification", this);
     264        UICocoaApplication::instance()->unregisterFromNotificationOfWindow("NSWindowDidExitFullScreenNotification", this);
     265        UICocoaApplication::instance()->unregisterFromNotificationOfWindow("NSWindowDidFailToEnterFullScreenNotification", this);
    266266    }
    267267#endif /* Q_WS_MAC */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette