From c6e2f266a11c7d2f2c025fc2f75ce38223a4bac2 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 26 Aug 2020 01:46:43 -0400 Subject: make chat message components their own subclass of ListBoxRow --- components/chatwindow.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'components/chatwindow.hpp') diff --git a/components/chatwindow.hpp b/components/chatwindow.hpp index 05e0c42..fb2abec 100644 --- a/components/chatwindow.hpp +++ b/components/chatwindow.hpp @@ -2,6 +2,7 @@ #include #include #include +#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); -- cgit v1.2.3