From 21f689b955462f37e8fd6ebc06ef634e114ce2a9 Mon Sep 17 00:00:00 2001 From: nico Date: Fri, 22 Feb 2002 01:33:07 +0000 Subject: [PATCH] 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 --- Source/GSInfoPanel.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/GSInfoPanel.m b/Source/GSInfoPanel.m index a0c41be5e..91fea767c 100644 --- a/Source/GSInfoPanel.m +++ b/Source/GSInfoPanel.m @@ -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]];