diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-07-01 02:03:41 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-07-01 02:03:41 -0400 |
commit | cbc65bf766c1241980961bcca999adf69c80dba0 (patch) | |
tree | 5c383a6201258e33ac72fa8e9b9690bcf5f7c5e6 /components/chatmessage.hpp | |
parent | 220aa6d13a9cb12687139305c6f68eb9cf6f73a1 (diff) | |
download | abaddon-portaudio-cbc65bf766c1241980961bcca999adf69c80dba0.tar.gz abaddon-portaudio-cbc65bf766c1241980961bcca999adf69c80dba0.zip |
re-add suppport for static (a)png stickers
Diffstat (limited to 'components/chatmessage.hpp')
-rw-r--r-- | components/chatmessage.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/chatmessage.hpp b/components/chatmessage.hpp index 7bc050d..3868094 100644 --- a/components/chatmessage.hpp +++ b/components/chatmessage.hpp @@ -25,7 +25,8 @@ protected: Gtk::Widget *CreateEmbedComponent(const EmbedData &data); // Message.Embeds[0] Gtk::Widget *CreateImageComponent(const std::string &proxy_url, const std::string &url, int inw, int inh); Gtk::Widget *CreateAttachmentComponent(const AttachmentData &data); // non-image attachments - Gtk::Widget *CreateStickerComponent(const StickerData &data); + Gtk::Widget *CreateStickerComponentDeprecated(const StickerData &data); + Gtk::Widget *CreateStickersComponent(const std::vector<StickerItem> &data); Gtk::Widget *CreateReactionsComponent(const Message &data); Gtk::Widget *CreateReplyComponent(const Message &data); @@ -89,14 +90,14 @@ public: ChatMessageHeader(const Message &data); void AddContent(Gtk::Widget *widget, bool prepend); void UpdateNameColor(); - std::vector<Gtk::Widget*> GetChildContent(); + std::vector<Gtk::Widget *> GetChildContent(); protected: void AttachUserMenuHandler(Gtk::Widget &widget); bool on_author_button_press(GdkEventButton *ev); - std::vector<Gtk::Widget*> m_content_widgets; + std::vector<Gtk::Widget *> m_content_widgets; Gtk::Box *m_main_box; Gtk::Box *m_content_box; |