Re: simplelist and custom cell renderers



Ross McFarland wrote:

if you look at Gtk2::SimpleList.pm around line 112 there's a bit of code that
sets up the toggle behavior. when you're custom added type above this code
won't happen since ref $column_info[$i]{attr} is 'CODE'.

the solution (probably) is to get the column's cell renderer after SimpleList
is done and set it up as the code ~ line 112 is doing for bool types indicated
by attr eq 'active'.

I ended up using the signal handler to change the data straight into the list. Not sure if it's the cleanest solution but did the trick and I'm short on time.
Thanks!!

--
Cristóvão Dalla Costa
cbraga freedows com




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