I'm following the steps in this tutorial to create a TreeModel ComboBox in Gtkd (not gtkmm):
https://developer.gnome.org/gtkmm-tutorial/stable/combobox-example-full.html.en
But im really stuck with it.
I think one way to set the ListStore to a combobox is this:
ListStore store = new ListStore([GType.INT, GType.STRING]);
TreeIter iter1 = store.createIter();
store.setValue(iter1, 0, 0);
store.setValue(iter1, 1, "Item 0");
TreeIter iter2 = store.createIter();
store.setValue(iter2, 0, 1);
store.setValue(iter2, 1, "Item 1");
obj_combobox.setModel(store);
CellRendererText renderer = new CellRendererText();
obj_combobox.packStart(renderer, true);
obj_combobox.addAttribute(renderer, "text", 1);
But how can i get the selected values from it?
This example works: