Browse files

[OSX] support icon for menu items

  • Loading branch information...
1 parent b3ebd9e commit c4159632e49e77ce15da098ff94a8c88ce8d98f1 @milani milani committed Oct 31, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/native_menu/native_menu_mac.mm
View
1 src/native_menu/native_menu_mac.mm
@@ -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];

0 comments on commit c415963

Please sign in to comment.