From: Cheng Zhao Date: Mon, 12 May 2014 13:31:46 +0000 (+0800) Subject: gtk: Show the menu after it has been added to window, fixes #292. X-Git-Tag: v0.12.4~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=90477321fe252fa65f1407b1fe01cf2ee6053092;p=electron.git gtk: Show the menu after it has been added to window, fixes #292. --- diff --git a/atom/browser/native_window_gtk.cc b/atom/browser/native_window_gtk.cc index 9957aacd..1cb24297 100644 --- a/atom/browser/native_window_gtk.cc +++ b/atom/browser/native_window_gtk.cc @@ -321,6 +321,7 @@ void NativeWindowGtk::SetMenu(ui::MenuModel* menu_model) { menu_.reset(new ::MenuGtk(this, menu_model, true)); gtk_box_pack_start(GTK_BOX(vbox_), menu_->widget(), FALSE, FALSE, 0); gtk_box_reorder_child(GTK_BOX(vbox_), menu_->widget(), 0); + gtk_widget_show_all(vbox_); RegisterAccelerators(); }