mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Fixes for drawing button cells.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4887 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
061c43304a
commit
06739272c3
4 changed files with 9 additions and 14 deletions
|
@ -1,3 +1,10 @@
|
|||
Tue Sep 14 1999 Nicola Pero <n.pero@mi.flashnet.it>
|
||||
|
||||
* Source/NSButton.m: ([-drawRect:]): Removed method.
|
||||
* Source/NSPopUpButton.m ([-drawRect:]): Corrected method.
|
||||
It should not draw the cell in its argument rect, but in its bounds.
|
||||
* Source/NSTextField.m: ([-drawRect:]): Removed method.
|
||||
|
||||
1999-09-14 David Lazaro Saz <khelekir@encomix.es>
|
||||
|
||||
* Source/NSButtonCell.m: NeXT look-alike changes
|
||||
|
|
|
@ -255,10 +255,6 @@ id _nsbuttonCellClass = nil;
|
|||
//
|
||||
// Displaying
|
||||
//
|
||||
- (void) drawRect: (NSRect)rect
|
||||
{
|
||||
[cell drawWithFrame: rect inView: self];
|
||||
}
|
||||
|
||||
- (void) highlight: (BOOL)flag
|
||||
{
|
||||
|
|
|
@ -486,7 +486,7 @@
|
|||
|
||||
if ([popb_menu numberOfItems] == 0)
|
||||
{
|
||||
[[NSPopUpButtonCell new] drawWithFrame:rect inView:self];
|
||||
[[NSPopUpButtonCell new] drawWithFrame:bounds inView:self];
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -495,7 +495,7 @@
|
|||
else
|
||||
aCell = [[popb_menu itemArray] objectAtIndex:0];
|
||||
|
||||
[aCell drawWithFrame:rect inView:self];
|
||||
[aCell drawWithFrame:bounds inView:self];
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
@ -212,14 +212,6 @@ id _nsTextfieldCellClass = nil;
|
|||
return text_delegate;
|
||||
}
|
||||
|
||||
//
|
||||
// Drawing
|
||||
//
|
||||
- (void) drawRect: (NSRect)rect
|
||||
{
|
||||
[cell drawWithFrame: rect inView: self];
|
||||
}
|
||||
|
||||
//
|
||||
// Modifying Graphic Attributes
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue