Make related change entries selectable

The default for _selectable in the Pile class was switched to False
with https://github.com/urwid/urwid/pull/367 commit 018509d, so
explicitly set our change entries selectable in order to allow them
to be navigated by keyboard with urwid 2.1.0 and later.

Change-Id: I31f3d62475ec2e8a10e7a553426412ad6aa43f8f
This commit is contained in:
Jeremy Stanley 2021-10-01 18:33:10 +00:00
parent 9ddbebd2cb
commit 8888457f32
1 changed files with 3 additions and 0 deletions

View File

@ -641,10 +641,13 @@ class ChangeView(urwid.WidgetWrap):
self.commit_message = CommitMessageBox(app, u'')
votes = mywid.Table([])
self.depends_on = urwid.Pile([])
self.depends_on._selectable = True
self.depends_on_rows = {}
self.needed_by = urwid.Pile([])
self.needed_by._selectable = True
self.needed_by_rows = {}
self.conflicts_with = urwid.Pile([])
self.conflicts_with._selectable = True
self.conflicts_with_rows = {}
self.related_changes = urwid.Pile([self.depends_on, self.needed_by, self.conflicts_with])
self.results = mywid.HyperText(u'') # because it scrolls better than a table