Re: CList double click
- From: Joern Reder <joern netcologne de>
- To: heiseltc yahoo com
- Cc: gtk-perl-list gnome org
- Subject: Re: CList double click
- Date: Sun, 26 Aug 2001 11:13:49 CEST
Conan Heiselt wrote:
What is the signal name for double clicking a row in a CList?
I know that one click is "select_row", but I want to be able to run a
subroutine when the row is double clicked.
There is no special signal for double clicks. Use the "select_row"
signal and check the $event parameter:
sub cb_clist_select_row {
my ($clist, $row, $column, $event) = @_;
if ( $event->{type} eq '2button_press' ) {
print "double click\n";
}
1;
}
Have fun,
Joern
--
sub i($){print$_[0]}*j=*ENV;sub w($){sleep$_[0]}sub _($){i"$p$c > ",w
1,$_=$_[0],tr;i-za-h,;a-hi-z ;,i$_,w 1,i"\n"}$|=1;$f='HO';($c=$j{PWD}
)=~s/$j{$f."ME"}/~/;$p="$j{USER}\ $j{HOSTNAME}:";_"kl",$c='~',_"zu,".
"-zn,*",_"#,epg,lw,gwc,mfmkcbm,cvsvwev,uiqt,kwvbmvb?",i"$p$c > ";w 99
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]