parent
							
								
									dcdae3ad2d
								
							
						
					
					
						commit
						63c28081a6
					
				| 
						 | 
					@ -26,7 +26,6 @@
 | 
				
			||||||
    // Setup status icon
 | 
					    // Setup status icon
 | 
				
			||||||
    if (show_icon) {
 | 
					    if (show_icon) {
 | 
				
			||||||
        myStatusItem = [[[NSStatusBar systemStatusBar] statusItemWithLength:NSSquareStatusItemLength] retain];
 | 
					        myStatusItem = [[[NSStatusBar systemStatusBar] statusItemWithLength:NSSquareStatusItemLength] retain];
 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        [self setIcon: icon_path];
 | 
					        [self setIcon: icon_path];
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -61,16 +60,12 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- (void) updateIcon: (char *)iconPath {
 | 
					- (void) updateIcon: (char *)iconPath {
 | 
				
			||||||
    if (show_icon) {
 | 
					    if (show_icon) {
 | 
				
			||||||
        [myStatusItem release];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        [self setIcon: iconPath];
 | 
					        [self setIcon: iconPath];
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- (void) setIcon: (char *)iconPath {
 | 
					- (void) setIcon: (char *)iconPath {
 | 
				
			||||||
    if (show_icon) {
 | 
					    if (show_icon) {
 | 
				
			||||||
        myStatusItem = [[[NSStatusBar systemStatusBar] statusItemWithLength:NSSquareStatusItemLength] retain];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSString *nsIconPath = [NSString stringWithUTF8String:iconPath];
 | 
					        NSString *nsIconPath = [NSString stringWithUTF8String:iconPath];
 | 
				
			||||||
        NSImage *statusImage = [[NSImage alloc] initWithContentsOfFile:nsIconPath];
 | 
					        NSImage *statusImage = [[NSImage alloc] initWithContentsOfFile:nsIconPath];
 | 
				
			||||||
        [statusImage setTemplate:YES];
 | 
					        [statusImage setTemplate:YES];
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user