1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:07:44 +00:00

LibCore: Move LibGUI/GNotifier to LibCore/CNotifier.

This commit is contained in:
Andreas Kling 2019-04-10 17:35:43 +02:00
parent b2542414d7
commit fc1d3074de
15 changed files with 53 additions and 53 deletions

View file

@ -19,7 +19,7 @@
Terminal::Terminal(int ptm_fd)
: m_ptm_fd(ptm_fd)
, m_notifier(ptm_fd, GNotifier::Read)
, m_notifier(ptm_fd, CNotifier::Read)
{
m_cursor_blink_timer.set_interval(500);
m_cursor_blink_timer.on_timeout = [this] {
@ -28,9 +28,9 @@ Terminal::Terminal(int ptm_fd)
};
set_font(Font::default_fixed_width_font());
m_notifier.on_ready_to_read = [this] (GNotifier& notifier) {
m_notifier.on_ready_to_read = [this]{
byte buffer[BUFSIZ];
ssize_t nread = read(notifier.fd(), buffer, sizeof(buffer));
ssize_t nread = read(m_ptm_fd, buffer, sizeof(buffer));
if (nread < 0) {
dbgprintf("Terminal read error: %s\n", strerror(errno));
perror("read(ptm)");

View file

@ -6,7 +6,7 @@
#include <SharedGraphics/GraphicsBitmap.h>
#include <SharedGraphics/Rect.h>
#include <LibGUI/GWidget.h>
#include <LibGUI/GNotifier.h>
#include <LibCore/CNotifier.h>
#include <LibGUI/GTimer.h>
class Font;
@ -152,7 +152,7 @@ private:
bool m_in_active_window { false };
bool m_need_full_flush { false };
GNotifier m_notifier;
CNotifier m_notifier;
float m_opacity { 1 };
bool m_needs_background_fill { true };