summaryrefslogtreecommitdiff
path: root/Applications/SystemMenu
AgeCommit message (Collapse)Author
2020-03-04LibCore: Make Core::Object::add<ChildType> return a ChildType&Andreas Kling
Since the returned object is now owned by the callee object, we can simply vend a ChildType&. This allows us to use "." instead of "->" at the call site, which is quite nice. :^)
2020-03-04LibGUI: Use GUI::Window::set_main_widget<WidgetType>() in clientsAndreas Kling
2020-03-04LibGUI: Use set_layout<LayoutType>() in lots of client codeAndreas Kling
2020-03-03LibGUI: Remove Button& parameter from Button::on_click hookAndreas Kling
There was but a single user of this parameter and it's a bit tedious to write it out every time, so let's get rid of it.
2020-03-03SystemMenu: Fix bad behavior in shutdown dialogAndreas Kling
The selected option was stored in a captured stack variable which was long gone by the time we looked at it, so this dialog didn't really behave the way you'd expect. Put it in a member instead. :^)
2020-03-03AK: Make quick_sort() a little more ergonomicAndreas Kling
Now it actually defaults to "a < b" comparison, instead of forcing you to provide a trivial less-than comparator. Also you can pass in any collection type that has .begin() and .end() and we'll sort it for you.
2020-02-25AK: Make Vector use size_t for its size and capacityAndreas Kling
2020-02-23SystemMenu: Migrate PowerDialog to (widget)->add like in 3d20da9ethatlittlegit
This also fixes the build.
2020-02-23SystemMenu: Move SystemDialog into SystemMenu and remove INI configthatlittlegit
I probably would've done INI config removal in another commit, but it fit well here because I didn't want to pledge wpath for SystemMenu if I didn't need to. Frankly, that's something that I think should be done: allow ConfigFile to be used read-only.
2020-02-23SystemMenu: Remove --shutdown argument when calling SystemDialogthatlittlegit
2020-02-22SystemMenu: Silence debug spam on startupAndreas Kling
2020-02-17SystemMenu: Use pledge() and unveil()Andreas Kling
2020-02-17SystemMenu: Finish the implementation and start this at boot :^)Andreas Kling
Fixes #1231.
2020-02-17SystemMenu: Add a separate program to host the system menuAndreas Kling
This will allow us to run the system menu as any user. It will also enable further lockdown of the WindowServer process since it should no longer need to pledge proc and exec. :^) Note that this program is not finished yet. Work towards #1231.