mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Implement logic for canPropagate...
This commit is contained in:
parent
bc802f3833
commit
09f022fa14
2 changed files with 13 additions and 0 deletions
|
@ -121,6 +121,14 @@
|
|||
- (void) setSelectedTabViewItemIndex: (NSInteger)idx
|
||||
{
|
||||
[[self tabView] selectTabViewItemAtIndex: idx];
|
||||
if (_canPropagateSelectedChildViewControllerTitle)
|
||||
{
|
||||
NSString *title = [[[self tabView] tabViewItems] objectAtIndex: idx];
|
||||
if (title != nil)
|
||||
{
|
||||
[self setTitle: title];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Responding to tabview actions...
|
||||
|
|
|
@ -84,6 +84,11 @@
|
|||
|
||||
- (void)setTitle:(NSString *)title
|
||||
{
|
||||
NSWindow *w = [[self view] window];
|
||||
if (w != nil)
|
||||
{
|
||||
[w setTitle: title]; // sync title with window...
|
||||
}
|
||||
ASSIGN(_title, title);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue