antoyo / relm

Idiomatic, GTK+-based, GUI library, inspired by Elm, written in Rust
MIT License
2.42k stars 79 forks source link

Treeview with editable checkboxes beside items? #241

Closed raphtlw closed 3 years ago

raphtlw commented 3 years ago

How can I create a treeview with editable checkboxes beside items using the widget attribute?

antoyo commented 3 years ago

Currently, there's no declarative way to create a complete treeview. The best you can do is this and use a gtk::CellRendererToggle here.

raphtlw commented 3 years ago

@antoyo thanks for the reply, i tried using CellRendererToggle but i couldn't toggle the thing and the text wasn't shown in the treeview. i'll just switch to the other way to build the widget tree :+1: