mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 03:11:18 +00:00
Add check for relationship value window.shadowedContentViewController
This commit is contained in:
parent
2aa154b1e4
commit
2208132e41
3 changed files with 10 additions and 7 deletions
|
@ -37,7 +37,7 @@ extern "C" {
|
|||
|
||||
@class NSSplitView, NSSplitViewItem, NSArray, NSMutableArray;
|
||||
|
||||
@interface NSSplitViewController : NSViewController <NSCoding, NSCopying>
|
||||
@interface NSSplitViewController : NSViewController
|
||||
{
|
||||
CGFloat _minimumThicknessForInlineSidebars;
|
||||
NSMutableArray *_splitViewItems;
|
||||
|
|
|
@ -62,7 +62,7 @@ typedef NSInteger NSTitlebarSeparatorStyle;
|
|||
|
||||
@class NSViewController;
|
||||
|
||||
@interface NSSplitViewItem : NSObject <NSCoding, NSCopying>
|
||||
@interface NSSplitViewItem : NSObject <NSCoding>
|
||||
{
|
||||
CGFloat _automaticMaximumThickness;
|
||||
CGFloat _preferredThicknessFraction;
|
||||
|
|
|
@ -106,11 +106,14 @@
|
|||
// Perform segue based on it's kind...
|
||||
if ([_kind isEqualToString: @"relationship"])
|
||||
{
|
||||
NSWindow *w = [_sourceController window];
|
||||
NSView *v = [_destinationController view];
|
||||
[w setContentView: v];
|
||||
[w setTitle: [_destinationController title]];
|
||||
[_sourceController showWindow: self];
|
||||
if ([_relationship isEqualToString: @"window.shadowedContentViewController"])
|
||||
{
|
||||
NSWindow *w = [_sourceController window];
|
||||
NSView *v = [_destinationController view];
|
||||
[w setContentView: v];
|
||||
[w setTitle: [_destinationController title]];
|
||||
[_sourceController showWindow: self];
|
||||
}
|
||||
}
|
||||
else if ([_kind isEqualToString: @"modal"])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue