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