From bbe36a8246041544d6ebe420dfa1b695b6c74521 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sat, 3 Oct 2020 18:49:22 -0400 Subject: maybe slightly better image loading maybe hopefully --- components/chatmessage.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'components/chatmessage.hpp') diff --git a/components/chatmessage.hpp b/components/chatmessage.hpp index 73307d2..144118f 100644 --- a/components/chatmessage.hpp +++ b/components/chatmessage.hpp @@ -13,7 +13,7 @@ public: // attributes = edited, deleted void UpdateAttributes(); void UpdateContent(); - void UpdateImage(); + void UpdateImage(std::string url, Glib::RefPtr buf); protected: bool EmitImageLoad(std::string url); @@ -24,7 +24,6 @@ protected: Gtk::Image *CreateImageComponent(const AttachmentData &data); Gtk::Box *CreateAttachmentComponent(const AttachmentData &data); // non-image attachments void HandleImage(const AttachmentData &data, Gtk::Image *img, std::string url); - static std::pair GetImageDimensions(int width, int height, int clampw = 400, int clamph = 300); std::unordered_map> m_img_loadmap; -- cgit v1.2.3