Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bronko
gajim
Commits
85e0e0da
Commit
85e0e0da
authored
Dec 27, 2019
by
Philipp Hörist
Browse files
MessageInput: Add insert_text()
For convenience
parent
91bb8c33
Changes
1
Hide whitespace changes
Inline
Side-by-side
gajim/gtk/message_input.py
View file @
85e0e0da
...
@@ -117,6 +117,9 @@ def _on_buffer_changed(self, *args):
...
@@ -117,6 +117,9 @@ def _on_buffer_changed(self, *args):
self
.
emit
(
'text-changed'
,
self
.
get_buffer
())
self
.
emit
(
'text-changed'
,
self
.
get_buffer
())
self
.
_last_text
=
text
self
.
_last_text
=
text
def
insert_text
(
self
,
text
):
self
.
get_buffer
().
insert_at_cursor
(
text
)
def
has_text
(
self
):
def
has_text
(
self
):
buf
=
self
.
get_buffer
()
buf
=
self
.
get_buffer
()
start
,
end
=
buf
.
get_bounds
()
start
,
end
=
buf
.
get_bounds
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment