On Wed, Aug 10, 2005 at 15:31:57 +0700, Beast wrote:
How to create SimpleList but without the header? The manual says that it can be turn off. ... Creates a new Gtk2::SimpleList object with the specified columns. The parameter cname is the name of the column, what will be displayed in the list headers if they are turned on. The parameter ctype is the type of the column, one of: .... I've tried this, but still not works. Gtk2::SimpleList->new(undef => 'pixbuf', undef=> 'text'); Gtk2::SimpleList->new('pixbuf', 'text');
Turned off does not mean never defined. You must define them. You must turn them off using Gtk2::TreeView::set_headers_visible. Since Gtk2::SimpleList->isa('Gtk2::TreeView'), you should just say: $lst = Gtk2::SimpleList->new(...); # Arguments as with headers! $lst->set_headers_visible(0); # This will hide the headers. ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb ucw cz>
Attachment:
signature.asc
Description: Digital signature