I am using Glade 3.6.7 on Linux and I want to integrate ComboBoxes and Spin Entries inside Treeviews.
For the comboBoxes, I can't show them.
For the spin entries, I can show them and change the values inside them but they aren't saved when I quit the cells. What I did is:
- Add columns and rows for the treeview and assign a combo cellrenderer for the columns where I want to put comboBoxes.
- Create a comboBox model and assign it to the defined columns (I changed "Model" and "Text" properties)
For spin entries:
- Add columns and rows for the treeview and assign a spin cellrenderer for the columns where I want to put spin entries.
- Create an adjustment and assign it to the defined columns (I changed "Adjustment" and "Text" properties)
And here is the code that I used:
G_MODULE_EXPORT void on_addTreeRowButton_clicked (GtkButton *button, gpointer user_data)
void addTriggerClientEntry(gchararray comboBoxValue, guint spinEntryValue)
liststore = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(treeview)));
gtk_list_store_set (liststore, &iter,