gtk: Show the menu after it has been added to window, fixes #292.
This commit is contained in:
parent
47cbcd5278
commit
90477321fe
1 changed files with 1 additions and 0 deletions
|
@ -321,6 +321,7 @@ void NativeWindowGtk::SetMenu(ui::MenuModel* menu_model) {
|
||||||
menu_.reset(new ::MenuGtk(this, menu_model, true));
|
menu_.reset(new ::MenuGtk(this, menu_model, true));
|
||||||
gtk_box_pack_start(GTK_BOX(vbox_), menu_->widget(), FALSE, FALSE, 0);
|
gtk_box_pack_start(GTK_BOX(vbox_), menu_->widget(), FALSE, FALSE, 0);
|
||||||
gtk_box_reorder_child(GTK_BOX(vbox_), menu_->widget(), 0);
|
gtk_box_reorder_child(GTK_BOX(vbox_), menu_->widget(), 0);
|
||||||
|
gtk_widget_show_all(vbox_);
|
||||||
RegisterAccelerators();
|
RegisterAccelerators();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue