Do no rely on CellRenderer mode but on type
The mode value is from the last row rendered not the current one. So we must just rely on the type of CellRenderer to know if it can be edited. issue8483 review261821002
This commit is contained in:
1 parent
35bcbd9d00
commit
bde46df290
1 file changed
+4
-2
@@ -13,8 +13,10 @@ _ = gettext.gettext
|
||||
|
||||
def focusable_cells(column, editable=True):
|
||||
for cell in column.get_cells():
|
||||
mode = cell.props.mode
|
||||
if not editable or mode & Gtk.CellRendererMode.EDITABLE:
|
||||
if not editable or isinstance(cell, (
|
||||
Gtk.CellRendererText,
|
||||
Gtk.CellRendererCombo,
|
||||
Gtk.CellRendererToggle)):
|
||||
yield cell
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user