diff options
Diffstat (limited to 'components/chatinput.hpp')
-rw-r--r-- | components/chatinput.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/components/chatinput.hpp b/components/chatinput.hpp index a01b6ab..abb7a18 100644 --- a/components/chatinput.hpp +++ b/components/chatinput.hpp @@ -9,15 +9,20 @@ public: Glib::RefPtr<Gtk::TextBuffer> GetBuffer(); bool ProcessKeyPress(GdkEventKey *event); -private: +protected: + void on_grab_focus() override; +private: Gtk::TextView m_textview; public: typedef sigc::signal<void, Glib::ustring> type_signal_submit; + typedef sigc::signal<void> type_signal_escape; type_signal_submit signal_submit(); + type_signal_escape signal_escape(); private: type_signal_submit m_signal_submit; + type_signal_escape m_signal_escape; }; |