VirtualBox

Changeset 62261 in vbox


Ignore:
Timestamp:
Jul 14, 2016 3:44:02 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108776
Message:

Reverting r108771 as it's not good enough.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp

    r62256 r62261  
    130130void UIMachineWindowNormal::sltHandleMenuBarConfigurationChange(const QString &strMachineID)
    131131{
    132 # ifdef VBOX_WS_X11
    133     /* We should skip that stuff on Unity (Compiz) to avoid duplicated menu-bar: */
    134     if (vboxGlobal().typeOfWindowManager() == X11WMType_Compiz)
    135         return;
    136 # endif /* VBOX_WS_X11 */
    137 
    138132    /* Skip unrelated machine IDs: */
    139133    if (vboxGlobal().managedVMUuid() != strMachineID)
     
    354348    /* Load GUI customizations: */
    355349    {
    356 #if   defined(VBOX_WS_MAC)
    357         /* Nothing for Mac OS X. */
    358 #elif defined(VBOX_WS_WIN)
     350#ifndef VBOX_WS_MAC
    359351        /* Update menu-bar visibility: */
    360352        menuBar()->setVisible(actionPool()->action(UIActionIndexRT_M_View_M_MenuBar_T_Visibility)->isChecked());
    361 #elif defined(VBOX_WS_X11)
    362         /* We should skip that stuff on Unity (Compiz) to avoid duplicated menu-bar: */
    363         if (vboxGlobal().typeOfWindowManager() != X11WMType_Compiz)
    364         {
    365             /* Update menu-bar visibility: */
    366             menuBar()->setVisible(actionPool()->action(UIActionIndexRT_M_View_M_MenuBar_T_Visibility)->isChecked());
    367         }
    368 #else
    369 # warning "port me!"
    370 #endif
     353#endif /* !VBOX_WS_MAC */
    371354        /* Update status-bar visibility: */
    372355        statusBar()->setVisible(actionPool()->action(UIActionIndexRT_M_View_M_StatusBar_T_Visibility)->isChecked());
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