Re: getting doubleclick from row in clist
- From: Chas Owens <cowens intercall com>
- To: Kim Schulz <kim schulz dk>
- Cc: gtk-perl-list gnome org
- Subject: Re: getting doubleclick from row in clist
- Date: 07 May 2002 15:01:09 -0400
On Tue, 2002-05-07 at 14:57, Kim Schulz wrote:
Hi
How do I connect signal for when a user doubleclicks a row in a clist?
I need to connect it to the sub row_activated
--
Kim Schulz - Freelance Development | Time-sharing is the junk-mail
www.schulz.dk - En nørds bekendelser | part of the computer business.
www.linuxia.dk - hverdagens små hacks | -- H.R.J. Grosch (attributed)
Connect the signal in the normal fashion and use a handler like this:
sub select_data {
my ($clist, $ev) = @_;
if ($ev->{button} == 1 and $ev->{type} eq '2button_press') {
my ($row, $col) =
$clist->get_selection_info($ev->{x},$ev->{y});
#do stuff with that row/column.
}
}
--
Today is Boomtime the 54th day of Discord in the YOLD 3168
Or not.
Missile Address: 33:48:3.521N 84:23:34.786W
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]