diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-10 17:35:43 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-10 17:35:43 +0200 |
commit | fc1d3074de27fbcd0bf07e61781850f628fba0f1 (patch) | |
tree | ef4f2e1e8d663aa8f31a9580ef5c05693093e891 /Applications/Terminal | |
parent | b2542414d706d55a6c39dd538d0d532d33179e5c (diff) | |
download | serenity-fc1d3074de27fbcd0bf07e61781850f628fba0f1.zip |
LibCore: Move LibGUI/GNotifier to LibCore/CNotifier.
Diffstat (limited to 'Applications/Terminal')
-rw-r--r-- | Applications/Terminal/Terminal.cpp | 6 | ||||
-rw-r--r-- | Applications/Terminal/Terminal.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Applications/Terminal/Terminal.cpp b/Applications/Terminal/Terminal.cpp index 4fe66c6039..a8e6267858 100644 --- a/Applications/Terminal/Terminal.cpp +++ b/Applications/Terminal/Terminal.cpp @@ -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)"); diff --git a/Applications/Terminal/Terminal.h b/Applications/Terminal/Terminal.h index f13eab22e6..3fedf44bdf 100644 --- a/Applications/Terminal/Terminal.h +++ b/Applications/Terminal/Terminal.h @@ -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 }; |