From 2d14cc4dfe1af5266d891aa62a5b5b3b756bbf40 Mon Sep 17 00:00:00 2001 From: Fred Kiefer Date: Tue, 8 Feb 2005 00:26:55 +0000 Subject: [PATCH] Corretec bug #11887 by letting secure text field cells draw the background colour. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20669 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSSecureTextField.m | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1a91758d4..c688e0640 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-02-08 Fred Kiefer + + * Source/NSSecureTextField.m (-drawInteriorWithFrame:inView:): + Draw the background colour of the cell. + 2005-02-07 Fred Kiefer * Source/NSTableView.m (-expandItem:expandChildren:, diff --git a/Source/NSSecureTextField.m b/Source/NSSecureTextField.m index cbba8ab34..885728f5b 100644 --- a/Source/NSSecureTextField.m +++ b/Source/NSSecureTextField.m @@ -115,7 +115,13 @@ - (void) drawInteriorWithFrame: (NSRect)cellFrame inView: (NSView *)controlView { - /* Do nothing. */ + /* Draw background, then ... */ + if (_textfieldcell_draws_background) + { + [_background_color set]; + NSRectFill ([self drawingRectForBounds: cellFrame]); + } + /* .. do nothing. */ } - (NSText *) setUpFieldEditorAttributes: (NSText *)textObject