mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 05:50:37 +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
|
@ -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…
Add table
Add a link
Reference in a new issue