mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-15 09:53:57 +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
|
@ -1,3 +1,10 @@
|
||||||
|
2005-11-21 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/NSSliderCell.m (-drawInteriorWithFrame:inView:): Allow
|
||||||
|
the knob image to resize. Patch by Georg Fleischmann <georg@vhf.de>
|
||||||
|
* Source/NSTextField: (textView:doCommandBySelector:) new method
|
||||||
|
to pass on the request to the delegate, if possible.
|
||||||
|
|
||||||
2005-11-21 Richard Frith-Macdonald <rfm@gnu.org>
|
2005-11-21 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSPasteboard.m: Turn off warning message about launching
|
* Source/NSPasteboard.m: Turn off warning message about launching
|
||||||
|
|
|
@ -191,16 +191,17 @@ DEFINE_RINT_IF_MISSING
|
||||||
{
|
{
|
||||||
image = [NSImage imageNamed: @"common_SliderVert"];
|
image = [NSImage imageNamed: @"common_SliderVert"];
|
||||||
size = [image size];
|
size = [image size];
|
||||||
[_knobCell setImage: image];
|
[image setScalesWhenResized:YES];
|
||||||
[image setSize: NSMakeSize (cellFrame.size.width, size.height)];
|
[image setSize: NSMakeSize (cellFrame.size.width, size.height)];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
image = [NSImage imageNamed: @"common_SliderHoriz"];
|
image = [NSImage imageNamed: @"common_SliderHoriz"];
|
||||||
size = [image size];
|
size = [image size];
|
||||||
[_knobCell setImage: image];
|
[image setScalesWhenResized:YES];
|
||||||
[image setSize: NSMakeSize (size.width, cellFrame.size.height)];
|
[image setSize: NSMakeSize (size.width, cellFrame.size.height)];
|
||||||
}
|
}
|
||||||
|
[_knobCell setImage: image];
|
||||||
}
|
}
|
||||||
_isVertical = vertical;
|
_isVertical = vertical;
|
||||||
|
|
||||||
|
|
|
@ -627,6 +627,20 @@ static Class textFieldCellClass;
|
||||||
return YES;
|
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
|
// Rich Text
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue