Add menu
parameter for Tray.popUpContextMenu
This commit is contained in:
parent
202475f5a9
commit
2fba05b5e7
8 changed files with 23 additions and 10 deletions
|
@ -137,9 +137,11 @@ void Tray::DisplayBalloon(mate::Arguments* args,
|
|||
}
|
||||
|
||||
void Tray::PopUpContextMenu(mate::Arguments* args) {
|
||||
Menu* menu = nullptr;
|
||||
args->GetNext(&menu);
|
||||
gfx::Point pos;
|
||||
args->GetNext(&pos);
|
||||
tray_icon_->PopUpContextMenu(pos);
|
||||
tray_icon_->PopUpContextMenu(pos, menu ? menu->model() : nullptr);
|
||||
}
|
||||
|
||||
void Tray::SetContextMenu(mate::Arguments* args, Menu* menu) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue