TreeView: editable cell data



 Hi,

 I use TreeView with cell text renderer. The data for this renderer I
 prepare by own funtion defined by gtk_tree_view_column_set_cell_data_func().
 The data are prepared by strfmon() (from libc) and are presented with 
 currency symbol. It works, but in "edit" mode when renderer show
 GtkEntry I want to use in this editable entry other data -- 
 data without currency symbol.

 Is some way how detect that TreeView wants data for editable GtkEntry
 or is there some catchable signal before this entry draw? I know only
 "edited" signal, but it's a little late :-) 
 
 The best solution for me is someway that returns pointer to GtkEntry
 used in editable renderer, but the GTK source code doesn't expect it.
 A simular problem is how can I filtrate keys in this GtkEntry (for
 example for digits only)?

    Karel

-- 
 Karel Zak  <zakkr zf jcu cz>
 http://home.zf.jcu.cz/~zakkr/



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