* Source/NSImage.m (-setScalesWhenResized:): Disable this method

as it is currently broken on the cairo backend.
* Source/NSApplication.m (-setApplicationIconImage:): Don't
use call -setScalesWhenResized:, because if it worked as it is
supposed to, it would scale all icon reps down to 48x48,
making large icon sizes useless.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34164 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2011-11-12 00:40:18 +00:00
parent 1cffdb27c7
commit c7531f2386
3 changed files with 13 additions and 3 deletions

View file

@ -1,3 +1,12 @@
2011-11-11 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSImage.m (-setScalesWhenResized:): Disable this method
as it is currently broken on the cairo backend.
* Source/NSApplication.m (-setApplicationIconImage:): Don't
use call -setScalesWhenResized:, because if it worked as it is
supposed to, it would scale all icon reps down to 48x48,
making large icon sizes useless.
2011-11-11 Eric Wasylishen <ewasylishen@gmail.com>
* Source/GSInfoPanel.m: Fix app icon button size at 48x48 and use

View file

@ -2338,8 +2338,6 @@ image.</p><p>See Also: -applicationIconImage</p>
// Use a copy as we change the name and size
ASSIGNCOPY(_app_icon, anImage);
[_app_icon setScalesWhenResized: YES];
miniWindowSize = [GSCurrentServer() iconSize];
if (miniWindowSize.width <= 0 || miniWindowSize.height <= 0)
{

View file

@ -755,7 +755,10 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
- (void) setScalesWhenResized: (BOOL)flag
{
_flags.scalable = flag;
// FIXME: This currently breaks NSImage.
// See the test case in GSTest/Image-test that uses this method.
// _flags.scalable = flag;
}
- (BOOL) scalesWhenResized