]> khamidou — GitHub mirrors - electron.git/commitdiff
gtk: Show the menu after it has been added to window, fixes #292.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 12 May 2014 13:31:46 +0000 (21:31 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 12 May 2014 13:33:08 +0000 (21:33 +0800)
atom/browser/native_window_gtk.cc

index 9957aacda5c24fb9115bcddf7945eeaa6c459efa..1cb2429763a25fcf386dc7e3b2924f4f2fed21da 100644 (file)
@@ -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();
 }