Re: Passing a column number to a cell renderer's edited signal




On May 17, 2005, at 11:33 PM, Dan wrote:

False alarm.

When creating the cell renderer, I can tell it what column it's in:

$renderer->set_data( column => $column_no );

and later I can get this data back out:

my $column_no = $cell->get_data("column");

You could just as easily use a key in the instance hash, a la

  $renderer->{column_number} = $column_no;


be careful with Glib::Object::set_data --- since it's completely untyped, it's only good for integer values.


--
"it's hard to be eventful when you have this much style."
   - me, rationalizing yet another night of sitting at home.




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