gtk_cell_renderer_combo



Hello,

I have used a gtk_cell_renderer_combo in a gtk_list_view.

In order to setup the combo i created a list-store for storing the combo
box data. After selction the combo box string (selected value) has to be
copied to the list-store powering the list-view. 

If the combo-box  would  support a property "data-column" beside
"text-column" wouldn't it be possible to reference and update integers
and use the string (combo-box "text-column") for display purposes only?
In this case the combo box value string has not to be copied to the
list-store, saving at a lot of memory and computing time as the
comparism between integers shall be much faster than string comparisms.

Kind Regards
-- 
Juergen Lueters <jlueters intranet-engineering de>





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