fix link/mention/emote parsing cuz dealing with utf8 sucks

This commit is contained in:
ouwou
2020-10-30 15:54:28 -04:00
parent 08c8937812
commit 2d0c78d4fa
2 changed files with 64 additions and 72 deletions

View File

@@ -26,7 +26,7 @@ protected:
Gtk::Box *CreateAttachmentComponent(const AttachmentData &data); // non-image attachments
void HandleImage(const AttachmentData &data, Gtk::Image *img, std::string url);
static Glib::ustring GetTextFiltered(const Glib::RefPtr<Gtk::TextBuffer> &buf);
static Glib::ustring GetText(const Glib::RefPtr<Gtk::TextBuffer> &buf);
void HandleUserMentions(Gtk::TextView *tv);
void HandleStockEmojis(Gtk::TextView *tv);