mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 14:10:44 +00:00
Palette Panel: set window title from original window title of selected palette; window titles were added/fixed for palettes.
This commit is contained in:
parent
55c2c8dfbc
commit
017bead07a
6 changed files with 7 additions and 4 deletions
|
@ -418,7 +418,7 @@ static NSImage *dragImage = nil;
|
|||
NSArray *exportImages;
|
||||
NSDictionary *subClasses;
|
||||
IBPalette *palette;
|
||||
NSImageCell *cell;
|
||||
NSButtonCell *cell;
|
||||
int col;
|
||||
|
||||
if([self bundlePathIsLoaded: path])
|
||||
|
@ -650,8 +650,7 @@ static NSImage *dragImage = nil;
|
|||
/*
|
||||
* Set the window title to reflect the palette selection.
|
||||
*/
|
||||
[panel setTitle: [NSString stringWithFormat: @"Palettes (%@)",
|
||||
[palette className]]];
|
||||
[panel setTitle: [[palette originalWindow] title]];
|
||||
|
||||
/*
|
||||
* Move the views from their original window into our drag view.
|
||||
|
|
|
@ -82,6 +82,7 @@
|
|||
styleMask: NSBorderlessWindowMask
|
||||
backing: NSBackingStoreRetained
|
||||
defer: NO];
|
||||
[originalWindow setTitle: @"Menus"];
|
||||
contents = [originalWindow contentView];
|
||||
|
||||
|
||||
|
|
|
@ -118,6 +118,7 @@
|
|||
styleMask: NSBorderlessWindowMask
|
||||
backing: NSBackingStoreRetained
|
||||
defer: NO];
|
||||
[originalWindow setTitle: @"Windows"];
|
||||
contents = [originalWindow contentView];
|
||||
|
||||
w = [[GormWindowMaker alloc] init];
|
||||
|
|
Binary file not shown.
|
@ -46,7 +46,7 @@
|
|||
@implementation ContainersPalette
|
||||
|
||||
- (void) finishInstantiate
|
||||
{
|
||||
{
|
||||
|
||||
NSView *contents;
|
||||
NSTableView *tv;
|
||||
|
@ -60,6 +60,7 @@
|
|||
styleMask: NSBorderlessWindowMask
|
||||
backing: NSBackingStoreRetained
|
||||
defer: NO];
|
||||
[originalWindow setTitle: @"Conatiners"];
|
||||
contents = [originalWindow contentView];
|
||||
|
||||
/*******************/
|
||||
|
|
|
@ -235,6 +235,7 @@ int defaultDateFormatIndex = 3;
|
|||
styleMask: NSBorderlessWindowMask
|
||||
backing: NSBackingStoreRetained
|
||||
defer: NO];
|
||||
[originalWindow setTitle: @"Data Views"];
|
||||
contents = [originalWindow contentView];
|
||||
|
||||
/*******************/
|
||||
|
|
Loading…
Reference in a new issue