Display checkbox in multiselection in the filter window

This applies the changes from 97e82c27dc17 to the filter window
This commit is contained in:
Nicolas Évrard
2025-04-12 21:30:56 +02:00
parent 9babb76a0f
commit 83d280fede
2 changed files with 10 additions and 0 deletions
+7
View File
@@ -1261,6 +1261,13 @@ input.column-boolean {
select[multiple] {
min-height: 150px;
max-height: 400px;
option:before {
content: "☐ ";
}
option:checked:before {
content: "☑ ";
}
}
}
@@ -159,6 +159,9 @@ class Selection(Gtk.ScrolledWindow):
self.treeview.set_model(model)
column = Gtk.TreeViewColumn()
select_cell = Gtk.CellRendererToggle()
select_cell.set_sensitive(False)
column.pack_start(select_cell, expand=False)
cell = Gtk.CellRendererText()
column.pack_start(cell, expand=True)
column.add_attribute(cell, 'text', 0)