Philipp Hörist pushed to branch message-selection at gajim / gajim
Commits:
-
1a739927
by Philipp Hörist at 2022-10-30T22:23:33+01:00
2 changed files:
Changes:
| ... | ... | @@ -55,6 +55,12 @@ def __init__(self, account: str, widget: Optional[str] = None) -> None: |
| 55 | 55 | |
| 56 | 56 | self.connect('destroy', self.__destroy)
|
| 57 | 57 | |
| 58 | + def enable_selection_mode(self) -> None:
|
|
| 59 | + return
|
|
| 60 | + |
|
| 61 | + def disable_selection_mode(self) -> None:
|
|
| 62 | + return
|
|
| 63 | + |
|
| 58 | 64 | @property
|
| 59 | 65 | def is_merged(self) -> bool:
|
| 60 | 66 | return self._merged
|
| ... | ... | @@ -168,16 +168,14 @@ def enable_row_selection(self, |
| 168 | 168 | self._list_box.select_row(row)
|
| 169 | 169 | |
| 170 | 170 | for row in self.iter_rows():
|
| 171 | - if isinstance(row, MessageRow):
|
|
| 172 | - row.enable_selection_mode()
|
|
| 171 | + row.enable_selection_mode()
|
|
| 173 | 172 | |
| 174 | 173 | def disable_row_selection(self) -> None:
|
| 175 | 174 | self._list_box.unselect_all()
|
| 176 | 175 | self._list_box.set_selection_mode(Gtk.SelectionMode.NONE)
|
| 177 | 176 | |
| 178 | 177 | for row in self.iter_rows():
|
| 179 | - if isinstance(row, MessageRow):
|
|
| 180 | - row.disable_selection_mode()
|
|
| 178 | + row.disable_selection_mode()
|
|
| 181 | 179 | |
| 182 | 180 | def _on_scroll_view(self,
|
| 183 | 181 | action: Gio.SimpleAction,
|