summaryrefslogtreecommitdiff
path: root/src/components/chatmessage.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/chatmessage.hpp')
-rw-r--r--src/components/chatmessage.hpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/components/chatmessage.hpp b/src/components/chatmessage.hpp
index 5e213ee..86c3fea 100644
--- a/src/components/chatmessage.hpp
+++ b/src/components/chatmessage.hpp
@@ -19,14 +19,13 @@ public:
void SetFailed();
protected:
- void AddClickHandler(Gtk::Widget *widget, std::string);
+ static void AddClickHandler(Gtk::Widget *widget, const std::string &);
Gtk::TextView *CreateTextComponent(const Message &data); // Message.Content
void UpdateTextComponent(Gtk::TextView *tv);
Gtk::Widget *CreateEmbedsComponent(const std::vector<EmbedData> &embeds);
- Gtk::Widget *CreateEmbedComponent(const EmbedData &data); // Message.Embeds[0]
+ static 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 *CreateStickerComponentDeprecated(const StickerData &data);
Gtk::Widget *CreateStickersComponent(const std::vector<StickerItem> &data);
Gtk::Widget *CreateReactionsComponent(const Message &data);
Gtk::Widget *CreateReplyComponent(const Message &data);
@@ -35,14 +34,14 @@ protected:
static bool IsEmbedImageOnly(const EmbedData &data);
- void HandleRoleMentions(const Glib::RefPtr<Gtk::TextBuffer> &buf);
- void HandleUserMentions(const Glib::RefPtr<Gtk::TextBuffer> &buf);
- void HandleStockEmojis(Gtk::TextView &tv);
- void HandleCustomEmojis(Gtk::TextView &tv);
- void HandleEmojis(Gtk::TextView &tv);
- void CleanupEmojis(Glib::RefPtr<Gtk::TextBuffer> buf);
+ static void HandleRoleMentions(const Glib::RefPtr<Gtk::TextBuffer> &buf);
+ void HandleUserMentions(const Glib::RefPtr<Gtk::TextBuffer> &buf) const;
+ static void HandleStockEmojis(Gtk::TextView &tv);
+ static void HandleCustomEmojis(Gtk::TextView &tv);
+ static void HandleEmojis(Gtk::TextView &tv);
+ static void CleanupEmojis(const Glib::RefPtr<Gtk::TextBuffer> &buf);
- void HandleChannelMentions(Glib::RefPtr<Gtk::TextBuffer> buf);
+ void HandleChannelMentions(const Glib::RefPtr<Gtk::TextBuffer> &buf);
void HandleChannelMentions(Gtk::TextView *tv);
bool OnClickChannel(GdkEventButton *ev);