mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 19:20:37 +00:00
Two small patches from the current mailing list discussion.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22060 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
58178af531
commit
a350b03662
3 changed files with 24 additions and 2 deletions
|
@ -191,16 +191,17 @@ DEFINE_RINT_IF_MISSING
|
|||
{
|
||||
image = [NSImage imageNamed: @"common_SliderVert"];
|
||||
size = [image size];
|
||||
[_knobCell setImage: image];
|
||||
[image setScalesWhenResized:YES];
|
||||
[image setSize: NSMakeSize (cellFrame.size.width, size.height)];
|
||||
}
|
||||
else
|
||||
{
|
||||
image = [NSImage imageNamed: @"common_SliderHoriz"];
|
||||
size = [image size];
|
||||
[_knobCell setImage: image];
|
||||
[image setScalesWhenResized:YES];
|
||||
[image setSize: NSMakeSize (size.width, cellFrame.size.height)];
|
||||
}
|
||||
[_knobCell setImage: image];
|
||||
}
|
||||
_isVertical = vertical;
|
||||
|
||||
|
|
|
@ -627,6 +627,20 @@ static Class textFieldCellClass;
|
|||
return YES;
|
||||
}
|
||||
|
||||
- (BOOL)textView: (NSTextView*)textView doCommandBySelector: (SEL)command
|
||||
{
|
||||
if (_delegate &&
|
||||
[_delegate respondsToSelector: @selector(control:textView:doCommandBySelector:)])
|
||||
{
|
||||
return [_delegate control: self
|
||||
textView: textView
|
||||
doCommandBySelector: command];
|
||||
}
|
||||
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Rich Text
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue