1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 23:04:59 +00:00

GStackWidget: Add a notification hook for when the active widget changes.

This commit is contained in:
Andreas Kling 2019-07-07 21:50:38 +02:00
parent 8b0953a795
commit d47432487d
2 changed files with 4 additions and 0 deletions

View file

@ -22,6 +22,8 @@ void GStackWidget::set_active_widget(GWidget* widget)
m_active_widget->set_relative_rect(rect());
m_active_widget->set_visible(true);
}
if (on_active_widget_change)
on_active_widget_change(m_active_widget);
}
void GStackWidget::resize_event(GResizeEvent& event)