From 1ff177ad5a11f084acca616084021664f8201514 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sun, 11 Oct 2020 01:56:30 -0400 Subject: shift click on message author to insert mention --- components/chatmessage.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'components/chatmessage.hpp') 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 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(); }; -- cgit v1.2.3