Re: combo box




On Dec 14, 2006, at 4:46 AM, beast wrote:

Is it required to use set_active($index) after creating a ComboBox?
Isn't that index=0 is the default?
Without activated, it drop down will be displayed but no text was printed.

The ComboBox can be used with an editable entry to allow the user to enter something not in the dropdown list. With that in mind, not defaulting to index=0 seems to make more sense.

As for why it doesn't attempt to use more intelligence to figure out that the box is not editable and should default to a list item --- that's a question for the gtk+ developers.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]