Open Stefan99353 opened 4 years ago
I imagine that <ComboBox model=MyModel />
would work? I think that would map to https://gtk-rs.org/docs/gtk/trait.ComboBoxExt.html#tymethod.set_model
You'd have to pass it a TreeModel: https://gtk-rs.org/docs/gtk/struct.TreeModel.html
If you'd like something where you can say <ComboBoxText items=vec!()
I think this requires writing a wrapper in https://github.com/bodil/vgtk/blob/master/vgtk/src/ext/mod.rs that calls the correct methods.
I trying to make a ComboBox displaying some strings, but I can't figure out how I can add Items to the Combobox.