mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:27:44 +00:00
Userspace: Use Core::Object::add() when building interfaces
This commit is contained in:
parent
7ec758773c
commit
3d20da9ee4
87 changed files with 403 additions and 438 deletions
|
@ -166,16 +166,13 @@ void TerminalWrapper::kill_running_command()
|
|||
(void)killpg(m_pid, SIGTERM);
|
||||
}
|
||||
|
||||
TerminalWrapper::TerminalWrapper(GUI::Widget* parent)
|
||||
: GUI::Widget(parent)
|
||||
TerminalWrapper::TerminalWrapper()
|
||||
{
|
||||
set_layout(make<GUI::VerticalBoxLayout>());
|
||||
|
||||
RefPtr<Core::ConfigFile> config = Core::ConfigFile::get_for_app("Terminal");
|
||||
m_terminal_widget = TerminalWidget::construct(-1, false, config);
|
||||
add_child(*m_terminal_widget);
|
||||
|
||||
m_process_state_widget = ProcessStateWidget::construct(this);
|
||||
m_terminal_widget = add<TerminalWidget>(-1, false, config);
|
||||
m_process_state_widget = add<ProcessStateWidget>();
|
||||
}
|
||||
|
||||
TerminalWrapper::~TerminalWrapper()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue