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

MessageInput: Add insert_text()

For convenience
parent 91bb8c33
......@@ -117,6 +117,9 @@ def _on_buffer_changed(self, *args):
self.emit('text-changed', self.get_buffer())
self._last_text = text
def insert_text(self, text):
def has_text(self):
buf = self.get_buffer()
start, end = buf.get_bounds()
Supports Markdown
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