mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 19:51:00 +00:00
Improved palette manager.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20077 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ecc3f3a69a
commit
6761304101
2 changed files with 16 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2004-09-17 00:54 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormPalettesManager.m: Added code to [GormPalettesManager
|
||||
setCurrentPalette:] to change the title to reflect the
|
||||
name of the palette currently selected. This makes it easier
|
||||
for the developer to navigate the palettes.
|
||||
|
||||
2004-09-17 00:54 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Palettes/2Controls/ControlsPalette.gorm: Removed old 14pt.
|
||||
|
|
|
@ -544,11 +544,19 @@ static NSImage *dragImage = nil;
|
|||
current = [anObj selectedColumn];
|
||||
if (current >= 0 && current < [palettes count])
|
||||
{
|
||||
id palette = [palettes objectAtIndex: current];
|
||||
|
||||
/*
|
||||
* Set the window title to reflect the palette selection.
|
||||
*/
|
||||
[panel setTitle: [NSString stringWithFormat: @"Palettes (%@)",
|
||||
[palette className]]];
|
||||
|
||||
/*
|
||||
* Move the views from their original window into our drag view.
|
||||
* Resize our drag view to the right size fitrst.
|
||||
*/
|
||||
wv = [[[palettes objectAtIndex: current] originalWindow] contentView];
|
||||
wv = [[palette originalWindow] contentView];
|
||||
if (wv)
|
||||
[dragView setFrameSize: [wv frame].size];
|
||||
enumerator = [[wv subviews] objectEnumerator];
|
||||
|
|
Loading…
Reference in a new issue