--- GSInfoPanel.m 2003-07-17 06:24:13.000000000 +0200 +++ GSInfoPanel.m-nico 2003-07-17 06:24:52.000000000 +0200 @@ -503,6 +503,24 @@ */ cv = [self contentView]; + /* + * Add a background image to the info panel + * Nicolas Roard + */ + + NSButton* backgroundImageButton = AUTORELEASE ([[NSButton alloc] initWithFrame: NSMakeRect (0,0,width, height)]); + NSImage* backgroundImage = [NSImage imageNamed: @"LogoGNUstep"]; + float backgroundImageRapport = [backgroundImage size].width / [backgroundImage size].height; + float backgroundImageWidth = height * backgroundImageRapport; + + [backgroundImage setScalesWhenResized: YES]; + [backgroundImage setSize: NSMakeSize (backgroundImageWidth, height)]; + [backgroundImageButton setImage: backgroundImage]; + [backgroundImageButton setBordered: NO]; + [backgroundImageButton setImagePosition: NSImageOnly]; + [backgroundImageButton setEnabled: NO]; + [cv addSubview: backgroundImageButton]; + f = [iconButton frame]; f.origin.x = 16; f.origin.y = height - 18 - f.size.height;