In the example that comes with ruby-gtk:
editable_cells.rb
each column gets its own renderer and each renderer is given a column
number so that when the renderer gets the ‘edited’ signal, it already
knows which data is being edited because it can get the iterator [row]
and it already knows the column number.
So I’m wondering, is there any way to re-use renderers for many
columns yet still allow the data to be editable? If so, how can I get
the column number for the cell that is being edited in an ‘edited’
signal handler?
btw, the docs say: “Typically, one cell renderer is used to draw many
cells on the screen. To this extent, it isn’t expected that a
CellRenderer keep any permanent state around.”
-Alex
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/