summaryrefslogtreecommitdiff
path: root/components/chatwindow.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-04-13 04:36:27 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2021-04-13 04:36:27 -0400
commit422eed92fc87799e2b5fc0b4fdacf7f2733ff3b3 (patch)
tree81ca317d32661a592441c371b5525f690c47bde0 /components/chatwindow.hpp
parent140782c395175345363d6de9cbaf67a024ddf7d8 (diff)
downloadabaddon-portaudio-422eed92fc87799e2b5fc0b4fdacf7f2733ff3b3.tar.gz
abaddon-portaudio-422eed92fc87799e2b5fc0b4fdacf7f2733ff3b3.zip
handle rate limited channels
Diffstat (limited to 'components/chatwindow.hpp')
-rw-r--r--components/chatwindow.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/chatwindow.hpp b/components/chatwindow.hpp
index f8336dd..078c66d 100644
--- a/components/chatwindow.hpp
+++ b/components/chatwindow.hpp
@@ -9,6 +9,7 @@ class ChatMessageHeader;
class ChatMessageItemContainer;
class ChatInput;
class ChatInputIndicator;
+class RateLimitIndicator;
class ChatWindow {
public:
ChatWindow();
@@ -43,7 +44,7 @@ protected:
Snowflake m_active_channel;
- void OnInputSubmit(const Glib::ustring &text);
+ bool OnInputSubmit(const Glib::ustring &text);
bool OnKeyPressEvent(GdkEventKey *e);
void OnScrollEdgeOvershot(Gtk::PositionType pos);
@@ -63,6 +64,8 @@ protected:
Completer m_completer;
ChatInputIndicator *m_input_indicator;
+ RateLimitIndicator *m_rate_limit_indicator;
+ Gtk::Box *m_meta;
public:
typedef sigc::signal<void, Snowflake, Snowflake> type_signal_action_message_delete;