mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 12:30:47 +00:00
[_initWithoutGModel] set target and action for the main colour well.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9188 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
771677e59e
commit
bef7e3dc54
1 changed files with 7 additions and 1 deletions
|
@ -232,7 +232,8 @@ static int _gs_gui_color_picker_mode = NSRGBModeColorPanel;
|
||||||
_colorWell = [[NSColorWell alloc] initWithFrame: wellRect];
|
_colorWell = [[NSColorWell alloc] initWithFrame: wellRect];
|
||||||
[_colorWell setAutoresizingMask: (NSViewWidthSizable | NSViewMinYMargin)];
|
[_colorWell setAutoresizingMask: (NSViewWidthSizable | NSViewMinYMargin)];
|
||||||
[_colorWell setBordered: NO];
|
[_colorWell setBordered: NO];
|
||||||
// FIXME: How can we monitor colours that get dropped here?
|
[_colorWell setTarget: self];
|
||||||
|
[_colorWell setAction: @selector(_updatePicker:)];
|
||||||
[_topView addSubview: _colorWell];
|
[_topView addSubview: _colorWell];
|
||||||
|
|
||||||
// Prototype cell for the matrix
|
// Prototype cell for the matrix
|
||||||
|
@ -343,6 +344,11 @@ static int _gs_gui_color_picker_mode = NSRGBModeColorPanel;
|
||||||
NSLog(@"Magnification is not implemented");
|
NSLog(@"Magnification is not implemented");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) _updatePicker: (id) sender
|
||||||
|
{
|
||||||
|
[_currentPicker setColor: [_colorWell color]];
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation NSColorPanel
|
@implementation NSColorPanel
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue