mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Update the control on colour changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18516 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
df3b584a19
commit
2c97e5fa28
2 changed files with 16 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-02-01 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSTextFieldCell.m (-setBackgroundColor:,
|
||||
-setDrawsBackground:, setTextColor:) tell the control, that the
|
||||
cell did update.
|
||||
|
||||
2004-01-30 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSBrowser.m
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include "config.h"
|
||||
#include <Foundation/NSNotification.h>
|
||||
#include "AppKit/NSColor.h"
|
||||
#include "AppKit/NSControl.h"
|
||||
#include "AppKit/NSFont.h"
|
||||
#include "AppKit/NSGraphics.h"
|
||||
#include "AppKit/NSTextFieldCell.h"
|
||||
|
@ -120,6 +121,9 @@ static NSColor *txtCol;
|
|||
{
|
||||
ASSIGN (_background_color, aColor);
|
||||
_textfieldcell_is_opaque = [self _isOpaque];
|
||||
if (_control_view)
|
||||
if ([_control_view isKindOfClass: [NSControl class]])
|
||||
[(NSControl *)_control_view updateCell: self];
|
||||
}
|
||||
|
||||
- (NSColor *) backgroundColor
|
||||
|
@ -131,6 +135,9 @@ static NSColor *txtCol;
|
|||
{
|
||||
_textfieldcell_draws_background = flag;
|
||||
_textfieldcell_is_opaque = [self _isOpaque];
|
||||
if (_control_view)
|
||||
if ([_control_view isKindOfClass: [NSControl class]])
|
||||
[(NSControl *)_control_view updateCell: self];
|
||||
}
|
||||
|
||||
- (BOOL) drawsBackground
|
||||
|
@ -141,6 +148,9 @@ static NSColor *txtCol;
|
|||
- (void) setTextColor: (NSColor *)aColor
|
||||
{
|
||||
ASSIGN (_text_color, aColor);
|
||||
if (_control_view)
|
||||
if ([_control_view isKindOfClass: [NSControl class]])
|
||||
[(NSControl *)_control_view updateCell: self];
|
||||
}
|
||||
|
||||
- (NSColor *) textColor
|
||||
|
|
Loading…
Reference in a new issue