SimpleList cellrenderer/signals


i'd like to connect an signal to a CellRendererToggle in simplelist.
Any ideas welcome.

The method get_renderer as proposed here
is not implemented. That's pity, because it seems not possible to define 
an own cellrenderer for SimpleList.
The following code results "Can't locate object method "new" via package 
"Gtk2::CellRendererToggle=HASH(0x862bb5c)" (perhaps you forgot to load 
at /usr/local/lib/perl/5.8.3/Gtk2/ line 105."

   my $renderer = Gtk2::CellRendererToggle->new;
   Gtk2::SimpleList->add_column_type( 'del', 
          type     => 'Glib::Boolean',
          renderer => "$renderer",
          attr     => 'active'

Some smaller hints for the docu:

the method get_column is not described in the perldoc 2004-04-12.

"Add a new column type to the list of possible types. Initially six 
column types are defined, text, int, double, bool, scalar, and pixbuf"
'bool' is unknown, seems to be 'boolean'.


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