1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-12 22:41:00 +00:00
serenity/Userland
sin-ack 611370e7dc LibGUI, WindowServer: Greatly simplify menubar logic
Currently, any number of menubars can be plugged in and out of a window.
This is unnecessary complexity, since we only need one menubar on a
window. This commit removes most of the logic for dynamically attaching
and detaching menubars and makes one menubar always available. The
menubar is only considered existent if it has at least a single menu in
it (in other words, an empty menubar will not be shown).

This commit additionally fixes a bug wherein menus added after a menubar
has been attached would not have their rects properly setup, and would
therefore appear glitched out on the top left corner of the menubar.
2021-08-02 00:39:15 +02:00
..
Applets Applets: Remove unused header includes 2021-08-01 08:10:16 +02:00
Applications Mail: Use Window::add_menu instead of Menubar::add_menu 2021-08-02 00:39:15 +02:00
Demos Demos: Remove unused header includes 2021-08-01 08:10:16 +02:00
DevTools HackStudio: Properly close previous project when opening a new one 2021-08-01 09:17:02 +02:00
DynamicLoader DynamicLoader+LibELF: Move self-relocation code into a separate file 2021-07-27 13:15:16 +02:00
Games Breakout: Add menus before showing the window 2021-07-31 08:08:31 +02:00
Libraries LibGUI, WindowServer: Greatly simplify menubar logic 2021-08-02 00:39:15 +02:00
Services LibGUI, WindowServer: Greatly simplify menubar logic 2021-08-02 00:39:15 +02:00
Shell Shell: Improve the parsing of history event designators 2021-08-02 02:58:55 +04:30
Utilities js: Implement pretty-printing of Temporal.ZonedDateTime objects 2021-08-01 20:31:31 +01:00
CMakeLists.txt Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00