Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Disabled "Show Document Palette" menu item
Currently the menu item's action method, popDocumentPalette:, just forces a crash
  • Loading branch information
tedge committed Jan 22, 2011
1 parent 9e8f4c3 commit ddf108f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Pixen Application/Canvas/PXCanvasWindowController_IBActions.m
Expand Up @@ -181,6 +181,8 @@ - (BOOL)validateMenuItem:(NSMenuItem *)anItem
}
else if ([anItem action] == @selector(setPatternToSelection:))
return [[self canvas] hasSelection] && [[[PXToolPaletteController sharedToolPaletteController] currentTool] supportsPatterns];
else if ([anItem action] == @selector(popDocumentPalette:))
return NO; // currently no document palette, so disable the menu item
return YES;
}

Expand Down Expand Up @@ -360,6 +362,7 @@ - (IBAction)selectNone: (id) sender
- (IBAction)popDocumentPalette:sender
{
//FIXME: no palette, memory concerns, change this architecture some
// note: if this is implemented in the future, need to remove code in validateMenuItem: that disables the menu item
assert(0);
// [PXPalettePanel popWithPalette:[canvas palette] fromWindow:[NSColorPanel sharedColorPanel]];
}
Expand Down

0 comments on commit ddf108f

Please sign in to comment.