Commit 85e0e0da authored by Philipp Hörist's avatar Philipp Hörist

MessageInput: Add insert_text()

For convenience
parent 91bb8c33
......@@ -117,6 +117,9 @@ class MessageInputTextView(Gtk.TextView):
self.emit('text-changed', self.get_buffer())
self._last_text = text
def insert_text(self, text):
self.get_buffer().insert_at_cursor(text)
def has_text(self):
buf = self.get_buffer()
start, end = buf.get_bounds()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment