Daniel Brötzmann pushed to branch master at gajim / gajim
Commits: b5b55c09 by wurstsalat at 2021-12-09T21:43:33+01:00 BaseControl: Properly format info message
- - - - - 63e54926 by wurstsalat at 2021-12-09T21:46:02+01:00 ReadMarkerRow: Improve UX
- - - - -
2 changed files:
- gajim/gtk/controls/base.py - gajim/gtk/conversation/rows/read_marker.py
Changes:
===================================== gajim/gtk/controls/base.py ===================================== @@ -999,7 +999,9 @@ def drag_data_file_transfer(self, selection: Gtk.SelectionData) -> None: for uri in uri_splitted: path = get_file_path_from_dnd_dropped_uri(uri) if not os.path.isfile(path): # is it a file? - self.add_info_message(_("The following file could not be accessed and was not uploaded: ") + path) + self.add_info_message( + _('The following file could not be accessed and was ' + 'not uploaded: %s') % path) continue
self._start_filetransfer(path)
===================================== gajim/gtk/conversation/rows/read_marker.py ===================================== @@ -24,6 +24,7 @@ class ReadMarkerRow(BaseRow): def __init__(self, account, contact): BaseRow.__init__(self, account, widget='label') + self.set_activatable(False) self.type = 'read_marker' self.timestamp = datetime.fromtimestamp(0) self._last_incoming_timestamp = datetime.fromtimestamp(0) @@ -34,6 +35,7 @@ def __init__(self, account, contact): self.label.set_text(text) self.label.set_halign(Gtk.Align.CENTER) self.label.set_hexpand(True) + self.label.set_sensitive(False) self.label.get_style_context().add_class( 'conversation-read-marker') self.grid.attach(self.label, 0, 0, 1, 1)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/aaa140aadbd9e0addc485cd58d175aa3...