[suggestion/patch] Desensitise GtkComboBox if its model only has 1 row
@dboles
Submitted by Daniel Boles Link to original bug (#775539)
Description
gtk_combobox_update_sensitivity() sets it to FALSE if the model has 0 rows. I'd argue that it should also do so if the model has only 1 row, as in that case, there is equally no purpose to clicking on it.
A ComboBox with only 1 row can arise in any situation where the number is dynamic, but the main case I can think of is when setting up a GtkFileChooser with only 1 filter, which I don't think is an infrequent scenario.
Desensitising then might save users the time of clicking on the CB and finding nothing interesting, just a menu popup that shows the same text as the button already did. :D
Version: 3.22.x