mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
ef2de2e61a
commit
b314f67bd1
1 changed files with 6 additions and 3 deletions
|
@ -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]];
|
||||
|
|
Loading…
Reference in a new issue