Changeset 62256 in vbox for trunk/src/VBox
- Timestamp:
- Jul 14, 2016 2:29:31 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r62227 r62256 130 130 void UIMachineWindowNormal::sltHandleMenuBarConfigurationChange(const QString &strMachineID) 131 131 { 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 132 138 /* Skip unrelated machine IDs: */ 133 139 if (vboxGlobal().managedVMUuid() != strMachineID) … … 348 354 /* Load GUI customizations: */ 349 355 { 350 #ifndef VBOX_WS_MAC 356 #if defined(VBOX_WS_MAC) 357 /* Nothing for Mac OS X. */ 358 #elif defined(VBOX_WS_WIN) 351 359 /* Update menu-bar visibility: */ 352 360 menuBar()->setVisible(actionPool()->action(UIActionIndexRT_M_View_M_MenuBar_T_Visibility)->isChecked()); 353 #endif /* !VBOX_WS_MAC */ 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 354 371 /* Update status-bar visibility: */ 355 372 statusBar()->setVisible(actionPool()->action(UIActionIndexRT_M_View_M_StatusBar_T_Visibility)->isChecked());
Note:
See TracChangeset
for help on using the changeset viewer.