GNOME Bugzilla – Bug 619148
"active ID" properties (GtkComboBox)
Last modified: 2010-11-30 15:54:54 UTC
GtkComboBox should support having the rows in it be named with ID strings. It would work this way: first, we have a "id-column" property. It is -1 by default, but if it is non-negative then it specifies a column in the GtkTreeModel that is used as the "id" column. It must be a string. Then we have a "active-id" property. When you get this, it returns the contents of the id column on the active row. When you set it, it searches for which row has the given id, and sets it as active.
Sounds plausible. Needs a patch, though
Created attachment 173086 [details] [review] patch Is this what you had in mind ? I wasn't entirely happy with it, so I left it out for now.
Committed an updated patch.