On 03-04-2020 13:19, mark wrote:
How can I delete all the rows in a Gtk ListBox?
Is there a simple listbox (like ComboBoxText) that maintains its own internal model, or do I have to create a ListStore myself?
Looping over all the children and removing them, i think is the only
option to remove all the rows:
foreach( widget; listbox.getChildren().toArray!Widget)
box.remove(widget);
I don't think gtk.ListBox allows you to set the model, so there is only
the simple version?