/[gnustep]/gnustep/core/gui/Source/NSSplitView.m
ViewVC logotype

Diff of /gnustep/core/gui/Source/NSSplitView.m

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.57 by fedor, Thu May 26 02:52:44 2005 UTC revision 1.58 by stoyan, Tue Aug 16 23:22:05 2005 UTC
# Line 103  static NSNotificationCenter *nc = nil; Line 103  static NSNotificationCenter *nc = nil;
103    NSApplication *app = [NSApplication sharedApplication];    NSApplication *app = [NSApplication sharedApplication];
104    static NSRect oldRect; //only one can be dragged at a time    static NSRect oldRect; //only one can be dragged at a time
105    static BOOL   lit = NO;    static BOOL   lit = NO;
106    NSPoint       p;    NSPoint       p, op;
107    NSEvent       *e;    NSEvent       *e;
108    NSRect        r, r1, bigRect, vis;    NSRect        r, r1, bigRect, vis;
109    id            v = nil, prev = nil;    id            v = nil, prev = nil;
# Line 526  static NSNotificationCenter *nc = nil; Line 526  static NSNotificationCenter *nc = nil;
526    
527    [self unlockFocus];    [self unlockFocus];
528    
529      // Divider position hasn't changed don't try to resize subviews  
530      if (_isVertical == YES && p.x == op.x)
531        {
532          [self setNeedsDisplay: YES];
533          return;
534        }
535      else if (p.y == op.y)  
536        {
537          [self setNeedsDisplay: YES];
538          return;
539        }
540    
541    [nc postNotificationName: NSSplitViewWillResizeSubviewsNotification    [nc postNotificationName: NSSplitViewWillResizeSubviewsNotification
542                      object: self];                      object: self];
543    

Legend:
Removed from v.1.57  
changed lines
  Added in v.1.58

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26