Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits:
882aeb58 by wurstsalat at 2021-05-02T00:16:17+02:00
Fix message Quote and Copy
- - - - -
1 changed file:
- gajim/gtk/conversation/rows/message.py
Changes:
=====================================
gajim/gtk/conversation/rows/message.py
=====================================
@@ -144,11 +144,11 @@ def is_mergeable(self, message):
def on_copy_message(self, _widget):
timestamp = self.timestamp.strftime('%x, %X')
clip = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
- clip.set_text(
- f'{timestamp} - {self.name}: {self.textview.get_text()}', -1)
+ text = self._message_widget.get_content().text
+ clip.set_text(f'{timestamp} - {self.name}: {text}', -1)
def on_quote_message(self, _widget):
- self.get_parent().on_quote(self.textview.get_text())
+ self.get_parent().on_quote(self._message_widget.get_content().text)
def _get_encryption_image(self, additional_data, encryption_enabled=None):
details = self._get_encryption_details(additional_data)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/882aeb58bddc7d7f50ea2e7d712c28c7a1a41820
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/882aeb58bddc7d7f50ea2e7d712c28c7a1a41820
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits