VirtualBox

Ignore:
Timestamp:
Jul 4, 2008 2:44:11 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4-OSX: HIWindowChangeAttributes is only available on 10.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/darwin/VBoxUtils-darwin.cpp

    r10230 r10231  
    108108    if (parent)
    109109    {
    110         int attr[] = { kHIWindowBitToolbarButton, 0 };
    111         int err = HIWindowChangeAttributes (::darwinToWindowRef (parent), aShow ? attr:NULL, aShow ? NULL:attr);
     110        int err = ChangeWindowAttributes (::darwinToWindowRef (parent), aShow ? kWindowToolbarButtonAttribute:kWindowNoAttributes,
     111                                                                        aShow ? kWindowNoAttributes:kWindowToolbarButtonAttribute);
    112112        AssertCarbonOSStatus (err);
    113113    }
Note: See TracChangeset for help on using the changeset viewer.

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