Make the button redraw after setting the image.

Don't do anything when the same contents view gets set on the window
again.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27308 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2008-12-16 19:28:25 +00:00
parent a50a598d7b
commit c1964b83f3
3 changed files with 11 additions and 7 deletions

View file

@ -1115,6 +1115,9 @@ many times.
previous content view. */
- (void) setContentView: (NSView*)aView
{
if (aView == _contentView)
return;
if (aView == nil)
{
aView = AUTORELEASE([[NSView alloc]