mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 16:51:18 +00:00
Use an image view instead of a button to display the application icon. That way
icons get scaled correctly. Patch by Philippe Roussel <p.o.roussel@free.fr>. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32578 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8cec097ed4
commit
f6d4e48099
2 changed files with 15 additions and 11 deletions
|
@ -1,10 +1,17 @@
|
||||||
|
2011-03-14 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/NSSavePanel.m (-_initWithoutGModel): Use an image view
|
||||||
|
instead of a button to display the application icon. That way
|
||||||
|
icons get scaled correctly.
|
||||||
|
Patch by Philippe Roussel <p.o.roussel@free.fr>.
|
||||||
|
|
||||||
2011-03-14 Nicola Pero <nicola.pero@meta-innovation.com>
|
2011-03-14 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||||
|
|
||||||
* Resources/GNUmakefile
|
* Resources/GNUmakefile
|
||||||
(gui-resources_RESOURCE_FILES_INSTALL_DIR): Removed.
|
(gui-resources_RESOURCE_FILES_INSTALL_DIR): Removed.
|
||||||
* Source/GNUmakefile
|
* Source/GNUmakefile
|
||||||
(libgui-resources_RESOURCE_FILES_INSTALL_DIR): Removed.
|
(libgui-resources_RESOURCE_FILES_INSTALL_DIR): Removed.
|
||||||
|
|
||||||
2011-03-14 Eric Wasylishen <ewasylishen@gmail.com>
|
2011-03-14 Eric Wasylishen <ewasylishen@gmail.com>
|
||||||
|
|
||||||
* Source/NSLayoutManager.m: Don't draw spelling underlines
|
* Source/NSLayoutManager.m: Don't draw spelling underlines
|
||||||
|
|
|
@ -181,6 +181,7 @@ setPath(NSBrowser *browser, NSString *path)
|
||||||
NSBox *bar;
|
NSBox *bar;
|
||||||
NSButton *button;
|
NSButton *button;
|
||||||
NSImage *image;
|
NSImage *image;
|
||||||
|
NSImageView *imageView;
|
||||||
NSRect r;
|
NSRect r;
|
||||||
id lastKeyView;
|
id lastKeyView;
|
||||||
|
|
||||||
|
@ -342,17 +343,13 @@ setPath(NSBrowser *browser, NSString *path)
|
||||||
[_browser setTarget: _okButton];
|
[_browser setTarget: _okButton];
|
||||||
|
|
||||||
r = NSMakeRect (8, 261, 48, 48);
|
r = NSMakeRect (8, 261, 48, 48);
|
||||||
button = [[NSButton alloc] initWithFrame: r];
|
|
||||||
image = [[NSApplication sharedApplication] applicationIconImage];
|
image = [[NSApplication sharedApplication] applicationIconImage];
|
||||||
[button setImage: image];
|
imageView = [[NSImageView alloc] initWithFrame: r];
|
||||||
[button setBordered: NO];
|
[imageView setAutoresizingMask: NSViewMinYMargin];
|
||||||
[button setEnabled: NO];
|
[imageView setImage:image];
|
||||||
[[button cell] setImageDimsWhenDisabled: NO];
|
[imageView setTag: NSFileHandlingPanelImageButton];
|
||||||
[button setImagePosition: NSImageOnly];
|
[_topView addSubview: imageView];
|
||||||
[button setAutoresizingMask: NSViewMinYMargin];
|
[imageView release];
|
||||||
[button setTag: NSFileHandlingPanelImageButton];
|
|
||||||
[_topView addSubview: button];
|
|
||||||
[button release];
|
|
||||||
|
|
||||||
r = NSMakeRect (67, 276, 200, 14);
|
r = NSMakeRect (67, 276, 200, 14);
|
||||||
_titleField = [[NSTextField alloc] initWithFrame: r];
|
_titleField = [[NSTextField alloc] initWithFrame: r];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue