How to get attribute value from TreeViewColumn?

Hi,
I need to read value of thing passed to TreeViewColumn

e.g. in this code

parameter active is set depending on user input(false/true) set here:

How can I read check which value user used inside a add_columns function?
Is there exists something like

println!("{}", column.get_attribute(&renderer, "active", Columns::Fixed);

That will print true/false?

gtk_tree_view_column_add_attribute() sets up a mapping between a column in your model (Fixed, in this case), and a property of the cell renderer (“active”). There is one value of Fixed for each row in your model, and you can get it from the model with gtk_tree_model_get().

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.