| Index: views/controls/menu/menu_host_gtk.cc
|
| ===================================================================
|
| --- views/controls/menu/menu_host_gtk.cc (revision 28706)
|
| +++ views/controls/menu/menu_host_gtk.cc (working copy)
|
| @@ -30,11 +30,11 @@
|
| }
|
| }
|
|
|
| -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 @@
|
| }
|
| }
|
|
|
| +gfx::NativeWindow MenuHost::GetNativeWindow() {
|
| + return GTK_WINDOW(GetNativeView());
|
| +}
|
| +
|
| void MenuHost::Show() {
|
| WidgetGtk::Show();
|
| }
|
|
|