Re: better way to set signal in Gtk2::SimpleList ?




Alexandre Jousset said:
      But in that list the 5th column is of type 'bool' and I would like to
set a signal on it when it is toggled. Is there a better way than (the
ugly-but-it-works):

($slist->get_column(4)->get_cell_renderers)[0]->signal_connect(toggled
=> \&callback);

      ?

That's pretty much it.

It would be nice to create a new "some cell changed" signal, but since
SimpleList is created by reblessing (necessarily so, for the style of glade
support used), that's not possible.



-- 
muppet <scott at asofyet dot org>




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