diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-06-06 03:55:25 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-06-06 03:55:25 -0400 |
commit | c6182e8923026108957227b41249294abbd85f79 (patch) | |
tree | ebbdaa593d3fcee457639c136b8fe1448d2a812e /src/components/chatinput.hpp | |
parent | 270730d9b36c8fc3a221da7e565632c1432d41c6 (diff) | |
download | abaddon-portaudio-c6182e8923026108957227b41249294abbd85f79.tar.gz abaddon-portaudio-c6182e8923026108957227b41249294abbd85f79.zip |
only save temporary image when theres room in container
Diffstat (limited to 'src/components/chatinput.hpp')
-rw-r--r-- | src/components/chatinput.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/chatinput.hpp b/src/components/chatinput.hpp index a6b2a31..83fde95 100644 --- a/src/components/chatinput.hpp +++ b/src/components/chatinput.hpp @@ -32,7 +32,7 @@ public: ChatInputAttachmentContainer(); void Clear(); - bool AddImage(const Glib::RefPtr<Gdk::Pixbuf> &pb, const std::string &path); + bool AddImage(const Glib::RefPtr<Gdk::Pixbuf> &pb); [[nodiscard]] std::vector<std::string> GetFilePaths() const; private: @@ -64,12 +64,11 @@ private: Gtk::TextView m_textview; bool CheckHandleClipboardPaste(); - void HandleNewPastedImage(const Glib::RefPtr<Gdk::Pixbuf> &pb, const std::string &filename); public: using type_signal_submit = sigc::signal<bool, Glib::ustring>; using type_signal_escape = sigc::signal<void>; - using type_signal_image_paste = sigc::signal<void, Glib::RefPtr<Gdk::Pixbuf>, std::string>; + using type_signal_image_paste = sigc::signal<void, Glib::RefPtr<Gdk::Pixbuf>>; type_signal_submit signal_submit(); type_signal_escape signal_escape(); |