mac: Implement menu parameter
This commit is contained in:
parent
2fba05b5e7
commit
3cdd0f35c7
2 changed files with 21 additions and 4 deletions
|
@ -137,11 +137,11 @@ void Tray::DisplayBalloon(mate::Arguments* args,
|
|||
}
|
||||
|
||||
void Tray::PopUpContextMenu(mate::Arguments* args) {
|
||||
Menu* menu = nullptr;
|
||||
mate::Handle<Menu> menu;
|
||||
args->GetNext(&menu);
|
||||
gfx::Point pos;
|
||||
args->GetNext(&pos);
|
||||
tray_icon_->PopUpContextMenu(pos, menu ? menu->model() : nullptr);
|
||||
tray_icon_->PopUpContextMenu(pos, menu.IsEmpty() ? nullptr : menu->model());
|
||||
}
|
||||
|
||||
void Tray::SetContextMenu(mate::Arguments* args, Menu* menu) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue