mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 18:50:48 +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
a515202130
commit
21f689b955
1 changed files with 6 additions and 3 deletions
|
@ -97,9 +97,9 @@ _new_label (NSString *value)
|
||||||
-initWithStringArray: (NSArray *)array
|
-initWithStringArray: (NSArray *)array
|
||||||
font: (NSFont *)font;
|
font: (NSFont *)font;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation _GSLabelListView
|
@implementation _GSLabelListView
|
||||||
{
|
|
||||||
}
|
|
||||||
-initWithStringArray: (NSArray *)array
|
-initWithStringArray: (NSArray *)array
|
||||||
font: (NSFont *)font
|
font: (NSFont *)font
|
||||||
{
|
{
|
||||||
|
@ -334,8 +334,11 @@ _new_label (NSString *value)
|
||||||
iconButton = AUTORELEASE([[NSButton alloc] initWithFrame: f]);
|
iconButton = AUTORELEASE([[NSButton alloc] initWithFrame: f]);
|
||||||
[iconButton setImage: icon];
|
[iconButton setImage: icon];
|
||||||
[iconButton setBordered: NO];
|
[iconButton setBordered: NO];
|
||||||
[iconButton setEnabled: NO];
|
|
||||||
[iconButton setImagePosition: NSImageOnly];
|
[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 = _new_label (name);
|
||||||
[nameLabel setFont: [NSFont boldSystemFontOfSize: 32]];
|
[nameLabel setFont: [NSFont boldSystemFontOfSize: 32]];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue