Re: Combobox disable item

2017-06-23 Thread Eric Cashon via gtk-app-devel-list
Add an extra column to your list and use that to set your "sensitive" property for the row. Eric /* gcc -Wall combo_filter2.c -o combo_filter2 `pkg-config --cflags --libs gtk+-3.0` Tested on GTK3.18 and Ubuntu16.04 */ #include static void combo2_changed(GtkComboBox *combo2, gpoint

Re: Combobox disable item

2017-06-23 Thread Mike Martin
I am trying to make entries "greyed-out" ie: disabled, rather than hidden eg the Combobox model contains ('Scandvb','DVB module','DVDb5-Scan') There is another comboox with a configuration file chosen I want to be able to make one or more of the entries unselectable if prerequites are not availa

Re: Combobox disable item

2017-06-22 Thread Eric Cashon via gtk-app-devel-list
Hi Mike, What part of the combo box are you trying to disable? If you want to filter rows or columns you can set up a tree model filter to do so. Maybe something like the following? Eric /* gcc -Wall combo_filter1.c -o combo_filter1 `pkg-config --cflags --libs gtk+-3.0` Tested