Re: Passing a column number to a cell renderer's edited signal
- From: muppet <scott asofyet org>
- To: Dan <dan entropy homelinux org>
- Cc: "gtk-perl-list gnome org" <gtk-perl-list gnome org>
- Subject: Re: Passing a column number to a cell renderer's edited signal
- Date: Wed, 18 May 2005 09:22:31 -0400
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]