diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-10-11 01:56:30 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-10-11 01:56:30 -0400 |
commit | 1ff177ad5a11f084acca616084021664f8201514 (patch) | |
tree | 0ecf71075af0a66a62ef58c2a395cc3dc9a06dc3 /components/chatmessage.hpp | |
parent | 059146b060e9cdd57f6ddbb9d6e6a17a2d6529f9 (diff) | |
download | abaddon-portaudio-1ff177ad5a11f084acca616084021664f8201514.tar.gz abaddon-portaudio-1ff177ad5a11f084acca616084021664f8201514.zip |
shift click on message author to insert mention
Diffstat (limited to 'components/chatmessage.hpp')
-rw-r--r-- | components/chatmessage.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/components/chatmessage.hpp b/components/chatmessage.hpp index 5fe60f3..35d4fea 100644 --- a/components/chatmessage.hpp +++ b/components/chatmessage.hpp @@ -92,11 +92,20 @@ public: void UpdateNameColor(); protected: + bool on_author_button_press(GdkEventButton *ev); + Gtk::Box *m_main_box; Gtk::Box *m_content_box; Gtk::Box *m_meta_box; + Gtk::EventBox *m_author_ev; Gtk::Label *m_author; Gtk::Label *m_timestamp; Gtk::Label *m_extra = nullptr; Gtk::Image *m_avatar; + + typedef sigc::signal<void, Snowflake> type_signal_action_insert_mention; + type_signal_action_insert_mention m_signal_action_insert_mention; + +public: + type_signal_action_insert_mention signal_action_insert_mention(); }; |