simplelist sort

View: New views
2 Messages — Rating Filter:   Alert me  

simplelist sort

by Dave M-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I have a very simple Gtk2::SimpleList inside a Gtk2::ScrolledWindow -
one column of information.

I would like to run a very simple sort subroutine on it when the
header is clicked, but I cannot find what signal to use for this.

Can anyone point me in the right direction?

Thanks,
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@...
http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: simplelist sort

by Dave M-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Oct 19, 2009 at 6:57 AM, Dave M <dave.nerd@...> wrote:

> Hello,
>
> I have a very simple Gtk2::SimpleList inside a Gtk2::ScrolledWindow -
> one column of information.
>
> I would like to run a very simple sort subroutine on it when the
> header is clicked, but I cannot find what signal to use for this.
>
> Can anyone point me in the right direction?
>
> Thanks,
>

Ok, I think I have it:

$slist->get_column(0)->signal_connect( clicked =>
                sub { warn "clicked!\n" } );

Thanks,
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@...
http://mail.gnome.org/mailman/listinfo/gtk-perl-list