muda/.changes/gtk-optional-container.md
Amr Bashir 98701d0b32
refactor(gtk): accept a container param instead of creating it (#75)
* refactor(gtk): accept a container param instead of creating it

* fix build

* fix clippy
2023-07-25 22:01:35 +03:00

5 lines
427 B
Markdown

---
"muda": "minor"
---
Changed `Menu::init_for_gtk_window` to accept a second argument for the container to which the menu bar should be added, if none was provided it will add it to the window directly. The method will no longer create a `gtk::Box` and append it to the window, instead you should add the box to the window yourself, then pass a reference to it the method so it can be used as the container for the menu bar.