mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 14:30:38 +00:00
Printing impl.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14862 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c7efda6fab
commit
3766e95ce1
4 changed files with 135 additions and 28 deletions
|
@ -268,14 +268,18 @@ static NSMutableArray *screenArray = nil;
|
|||
{
|
||||
NSRect visFrame = _frame;
|
||||
|
||||
switch ([NSApp interfaceStyle])
|
||||
switch (NSInterfaceStyleForKey(@"NSIntefaceStyle", nil))
|
||||
{
|
||||
case NSMacintoshInterfaceStyle:
|
||||
// What is the size of the Mac menubar?
|
||||
visFrame.size.height -= 25;
|
||||
return visFrame;
|
||||
case NSWindows95InterfaceStyle:
|
||||
case GSWindowMakerInterfaceStyle:
|
||||
case NSNextStepInterfaceStyle:
|
||||
visFrame.size.width -= 64;
|
||||
return visFrame;
|
||||
|
||||
case NSWindows95InterfaceStyle:
|
||||
case NSNoInterfaceStyle:
|
||||
default:
|
||||
return _frame;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue