mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 19:10:37 +00:00
Allow for mac style horizontal menu. Also minor code style fixups.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22598 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
552a31196a
commit
f692658c91
4 changed files with 53 additions and 29 deletions
|
@ -1519,8 +1519,8 @@ many times.
|
|||
don't constrain if we are merely unhidding the window or if it's
|
||||
already visible and is just being reordered. */
|
||||
if ((_styleMask & NSTitledWindowMask)
|
||||
&& [NSApp isHidden] == NO
|
||||
&& _f.visible == NO)
|
||||
&& [NSApp isHidden] == NO
|
||||
&& _f.visible == NO)
|
||||
{
|
||||
NSRect nframe = [self constrainFrameRect: _frame
|
||||
toScreen: [self screen]];
|
||||
|
@ -1750,7 +1750,8 @@ many times.
|
|||
if (resizeTime == 0)
|
||||
{
|
||||
NSNumber *num;
|
||||
num = [[NSUserDefaults standardUserDefaults] objectForKey: @"NSWindowResizeTime"];
|
||||
num = [[NSUserDefaults standardUserDefaults]
|
||||
objectForKey: @"NSWindowResizeTime"];
|
||||
if (num != nil)
|
||||
{
|
||||
resizeTime = [num floatValue];
|
||||
|
@ -3895,7 +3896,7 @@ resetCursorRectsForView(NSView *theView)
|
|||
}
|
||||
|
||||
- (BOOL) setFrameUsingName: (NSString *)name
|
||||
force: (BOOL)force
|
||||
force: (BOOL)force
|
||||
{
|
||||
// FIXME
|
||||
return [self setFrameUsingName: name];
|
||||
|
@ -3980,10 +3981,10 @@ resetCursorRectsForView(NSView *theView)
|
|||
maxRect = [self constrainFrameRect: maxRect toScreen: [self screen]];
|
||||
|
||||
// Compare the new frame with the current one
|
||||
if ((abs(NSMaxX(maxRect) - NSMaxX(_frame)) < DIST) &&
|
||||
(abs(NSMaxY(maxRect) - NSMaxY(_frame)) < DIST) &&
|
||||
(abs(NSMinX(maxRect) - NSMinX(_frame)) < DIST) &&
|
||||
(abs(NSMinY(maxRect) - NSMinY(_frame)) < DIST))
|
||||
if ((abs(NSMaxX(maxRect) - NSMaxX(_frame)) < DIST)
|
||||
&& (abs(NSMaxY(maxRect) - NSMaxY(_frame)) < DIST)
|
||||
&& (abs(NSMinX(maxRect) - NSMinX(_frame)) < DIST)
|
||||
&& (abs(NSMinY(maxRect) - NSMinY(_frame)) < DIST))
|
||||
{
|
||||
// Already in zoomed mode, reset user frame, if stored
|
||||
if (_autosaveName != nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue