mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 18:15:07 +00:00
Taskbar: More bringup work. We now see a basic window list.
This commit is contained in:
parent
ea801a99dc
commit
96104b5524
20 changed files with 339 additions and 12 deletions
|
@ -40,6 +40,15 @@ void GLayout::add_widget(GWidget& widget)
|
|||
m_owner->notify_layout_changed(Badge<GLayout>());
|
||||
}
|
||||
|
||||
void GLayout::remove_widget(GWidget& widget)
|
||||
{
|
||||
m_entries.remove_first_matching([&] (auto& entry) {
|
||||
return entry.widget.ptr() == &widget;
|
||||
});
|
||||
if (m_owner)
|
||||
m_owner->notify_layout_changed(Badge<GLayout>());
|
||||
}
|
||||
|
||||
void GLayout::set_spacing(int spacing)
|
||||
{
|
||||
if (m_spacing == spacing)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue