mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-31 09:21:26 +00:00
Fix for app icon problem.
This commit is contained in:
parent
7ee9b40793
commit
2d39b0cdfb
1 changed files with 12 additions and 2 deletions
|
@ -89,6 +89,9 @@ static NSMapTable *windowtags = NULL;
|
||||||
/* Track used window numbers */
|
/* Track used window numbers */
|
||||||
static int last_win_num = 0;
|
static int last_win_num = 0;
|
||||||
|
|
||||||
|
@interface NSApplication (Private)
|
||||||
|
- (void) _appIconInit;
|
||||||
|
@end
|
||||||
|
|
||||||
@interface NSCursor (BackendPrivate)
|
@interface NSCursor (BackendPrivate)
|
||||||
- (void *)_cid;
|
- (void *)_cid;
|
||||||
|
@ -2692,12 +2695,19 @@ static BOOL didCreatePixmaps;
|
||||||
GC pixgc;
|
GC pixgc;
|
||||||
RColor pixelRColor;
|
RColor pixelRColor;
|
||||||
RContext *rcontext;
|
RContext *rcontext;
|
||||||
|
NSDictionary *infoDict = nil;
|
||||||
|
NSString *appIconFile = nil;
|
||||||
|
|
||||||
NSAssert(!didCreatePixmaps, @"called _createAppIconPixmap twice");
|
NSAssert(!didCreatePixmaps, @"called _createAppIconPixmap twice");
|
||||||
|
|
||||||
didCreatePixmaps = YES;
|
didCreatePixmaps = YES;
|
||||||
|
|
||||||
image = [NSApp applicationIconImage];
|
image = [NSApp applicationIconImage];
|
||||||
|
if(image == nil)
|
||||||
|
{
|
||||||
|
[NSApp _appIconInit];
|
||||||
|
image = [NSApp applicationIconImage];
|
||||||
|
}
|
||||||
|
|
||||||
rep = getStandardBitmap(image);
|
rep = getStandardBitmap(image);
|
||||||
if (rep == nil)
|
if (rep == nil)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue