mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-29 12:15:38 +08:00
Initial work for Aura on Linux.
This commit is contained in:
@@ -87,7 +87,7 @@ class Menu : public mate::Wrappable,
|
||||
virtual void UpdateStates() = 0;
|
||||
#endif
|
||||
|
||||
#if defined(OS_WIN) || defined(TOOLKIT_GTK)
|
||||
#if defined(OS_WIN) || defined(OS_LINUX)
|
||||
virtual void AttachToWindow(Window* window) = 0;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ MenuGtk::MenuGtk() {
|
||||
}
|
||||
|
||||
void MenuGtk::Popup(Window* window) {
|
||||
/*
|
||||
uint32_t triggering_event_time;
|
||||
gfx::Point point;
|
||||
|
||||
@@ -35,10 +36,11 @@ void MenuGtk::Popup(Window* window) {
|
||||
|
||||
menu_gtk_.reset(new ::MenuGtk(this, model_.get()));
|
||||
menu_gtk_->PopupAsContext(point, triggering_event_time);
|
||||
*/
|
||||
}
|
||||
|
||||
void MenuGtk::AttachToWindow(Window* window) {
|
||||
static_cast<NativeWindowGtk*>(window->window())->SetMenu(model_.get());
|
||||
// static_cast<NativeWindowGtk*>(window->window())->SetMenu(model_.get());
|
||||
}
|
||||
|
||||
// static
|
||||
|
||||
Reference in New Issue
Block a user