LibCore: Prune remaining knowledge about LibGUI.

This commit is contained in:
Andreas Kling 2019-04-12 00:03:21 +02:00
parent c736dbdf10
commit 667e678aa6
Notes: sideshowbarker 2024-07-19 14:44:47 +09:00
2 changed files with 16 additions and 15 deletions

View file

@ -1,15 +1,16 @@
#include <LibCore/CNotifier.h>
#include <LibGUI/GEventLoop.h>
#include <LibCore/CEventLoop.h>
#include <LibCore/CEvent.h>
CNotifier::CNotifier(int fd, unsigned event_mask)
: m_fd(fd)
, m_event_mask(event_mask)
{
GEventLoop::register_notifier(Badge<CNotifier>(), *this);
CEventLoop::register_notifier(Badge<CNotifier>(), *this);
}
CNotifier::~CNotifier()
{
GEventLoop::unregister_notifier(Badge<CNotifier>(), *this);
CEventLoop::unregister_notifier(Badge<CNotifier>(), *this);
}