proper title in prefs window
This commit is contained in:
parent
b95748b998
commit
ab291dc44d
|
@ -917,12 +917,19 @@
|
||||||
windowRect.origin.y -= difference;
|
windowRect.origin.y -= difference;
|
||||||
windowRect.size.height += difference;
|
windowRect.size.height += difference;
|
||||||
|
|
||||||
[window setTitle: [fToolbar selectedItemIdentifier]];
|
|
||||||
|
|
||||||
[view setHidden: YES];
|
[view setHidden: YES];
|
||||||
[window setContentView: view];
|
[window setContentView: view];
|
||||||
[window setFrame: windowRect display: YES animate: YES];
|
[window setFrame: windowRect display: YES animate: YES];
|
||||||
[view setHidden: NO];
|
[view setHidden: NO];
|
||||||
|
|
||||||
|
NSToolbarItem * item;
|
||||||
|
NSEnumerator * enumerator = [[fToolbar items] objectEnumerator];
|
||||||
|
while ((item = [enumerator nextObject]))
|
||||||
|
if ([[item itemIdentifier] isEqualToString: [fToolbar selectedItemIdentifier]])
|
||||||
|
{
|
||||||
|
[window setTitle: [item label]];
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) folderSheetClosed: (NSOpenPanel *) openPanel returnCode: (int) code contextInfo: (void *) info
|
- (void) folderSheetClosed: (NSOpenPanel *) openPanel returnCode: (int) code contextInfo: (void *) info
|
||||||
|
|
Loading…
Reference in New Issue