mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-21 07:06:04 +00:00
LibCore+LibGUI: Remove GEventLoop and use CEventLoop everywhere
GEventLoop was just a dummy subclass of CEventLoop anyway. The only thing it actually did was make sure a GWindowServerConnectionw was instantiated. We now take care of that in GApplication instead. CEventLoop is now non-virtual and a little less confusing. :^)
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
#include <LibGUI/GDesktop.h>
|
||||
#include <LibGUI/GDialog.h>
|
||||
#include <LibGUI/GEventLoop.h>
|
||||
|
||||
GDialog::GDialog(CObject* parent)
|
||||
: GWindow(parent)
|
||||
{
|
||||
set_modal(true);
|
||||
|
||||
}
|
||||
|
||||
GDialog::~GDialog()
|
||||
@@ -16,7 +14,7 @@ GDialog::~GDialog()
|
||||
int GDialog::exec()
|
||||
{
|
||||
ASSERT(!m_event_loop);
|
||||
m_event_loop = make<GEventLoop>();
|
||||
m_event_loop = make<CEventLoop>();
|
||||
auto new_rect = rect();
|
||||
if (parent() && parent()->is_window()) {
|
||||
auto& parent_window = *static_cast<GWindow*>(parent());
|
||||
@@ -47,4 +45,3 @@ void GDialog::close()
|
||||
GWindow::close();
|
||||
m_event_loop->quit(ExecCancel);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user