Start the memory panel when you click on the application icon

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12644 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2002-02-22 01:33:07 +00:00
parent ef2de2e61a
commit b314f67bd1

View file

@ -97,9 +97,9 @@ _new_label (NSString *value)
-initWithStringArray: (NSArray *)array
font: (NSFont *)font;
@end
@implementation _GSLabelListView
{
}
-initWithStringArray: (NSArray *)array
font: (NSFont *)font
{
@ -334,8 +334,11 @@ _new_label (NSString *value)
iconButton = AUTORELEASE([[NSButton alloc] initWithFrame: f]);
[iconButton setImage: icon];
[iconButton setBordered: NO];
[iconButton setEnabled: NO];
[iconButton setImagePosition: NSImageOnly];
/* Clicking on the iconButton starts the GSMemoryPanel. */
[iconButton setEnabled: YES];
[iconButton setTarget: NSApp];
[iconButton setAction: @selector(orderFrontSharedMemoryPanel:)];
nameLabel = _new_label (name);
[nameLabel setFont: [NSFont boldSystemFontOfSize: 32]];