make chat message components their own subclass of ListBoxRow

This commit is contained in:
ouwou
2020-08-26 01:46:43 -04:00
parent 82a21bd085
commit c6e2f266a1
6 changed files with 82 additions and 54 deletions

View File

@@ -2,6 +2,7 @@
#include <gtkmm.h>
#include <queue>
#include <mutex>
#include "chatmessage.hpp"
#include "../discord/discord.hpp"
class Abaddon;
@@ -20,8 +21,8 @@ protected:
void ScrollToBottom();
void SetMessagesInternal();
void AddNewMessageInternal();
Gtk::ListBoxRow *CreateChatEntryComponentText(const MessageData *data);
Gtk::ListBoxRow *CreateChatEntryComponent(const MessageData *data);
ChatMessageItem *CreateChatEntryComponentText(const MessageData *data);
ChatMessageItem *CreateChatEntryComponent(const MessageData *data);
bool on_key_press_event(GdkEventKey *e);