List without headers

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

List without headers

beast-3

Hi all,

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');



--

--beast

_______________________________________________
gtk-perl-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Reply | Threaded
Open this post in threaded view
|

Re: List without headers

Jan Hudec
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 <[hidden email]>

_______________________________________________
gtk-perl-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/gtk-perl-list

signature.asc (196 bytes) Download Attachment