mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-27 16:16:35 +03:00
only save temporary image when theres room in container
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user