diff options
Diffstat (limited to 'views/controls/menu/menu_host_gtk.cc')
-rw-r--r-- | views/controls/menu/menu_host_gtk.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/views/controls/menu/menu_host_gtk.cc b/views/controls/menu/menu_host_gtk.cc index aee0d17..11033c4 100644 --- a/views/controls/menu/menu_host_gtk.cc +++ b/views/controls/menu/menu_host_gtk.cc @@ -30,11 +30,11 @@ MenuHost::MenuHost(SubmenuView* submenu) } } -void MenuHost::Init(gfx::NativeView parent, +void MenuHost::Init(gfx::NativeWindow parent, const gfx::Rect& bounds, View* contents_view, bool do_capture) { - WidgetGtk::Init(parent, bounds); + WidgetGtk::Init(GTK_WIDGET(parent), bounds); SetContentsView(contents_view); // TODO(sky): see if there is some way to show without changing focus. Show(); @@ -65,6 +65,10 @@ void MenuHost::Init(gfx::NativeView parent, } } +gfx::NativeWindow MenuHost::GetNativeWindow() { + return GTK_WINDOW(GetNativeView()); +} + void MenuHost::Show() { WidgetGtk::Show(); } |