sample/examples/action-namespace.rb in gtk4-4.0.3 vs sample/examples/action-namespace.rb in gtk4-4.0.4
- old
+ new
@@ -121,10 +121,10 @@
button.label = "Menu"
button.insert_action_group("doc", doc_actions)
button.menu_model = buttonmenu
button.halign = :center
button.valign = :start
- win.add(button)
+ win.set_child(button)
win.show
end
application.run(ARGV)