Skip to content

Commit

Permalink
[OSX] support icon for menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
milani committed Oct 31, 2012
1 parent b3ebd9e commit c415963
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/native_menu/native_menu_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ - (void)handleAction:(id)sender {
menuItem = [[NSMenuItem alloc] initWithTitle:label action:NULL keyEquivalent:@""];
} else {
menuItem = [[NSMenuItem alloc] initWithTitle:label action:NULL keyEquivalent:@""];
[menuItem setImage:[[NSImage alloc] initByReferencingFile:icon]];
}
[menuItem setEnabled:YES];

Expand Down

0 comments on commit c415963

Please sign in to comment.