SimpleList cellrenderer/signals
- From: Jens Wilke <jens wilke org>
- To: Gtk-Perl-List <gtk-perl-list gnome org>
- Subject: SimpleList cellrenderer/signals
- Date: Sun, 11 Jul 2004 19:10:11 +0200
Hi,
i'd like to connect an signal to a CellRendererToggle in simplelist.
Any ideas welcome.
The method get_renderer as proposed here
http://mail.gnome.org/archives/gtk-perl-list/2003-July/msg00214.html
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
"Gtk2::CellRendererToggle=HASH(0x862bb5c)"?)
at /usr/local/lib/perl/5.8.3/Gtk2/SimpleList.pm 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'.
Jens
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]