Re: row selected



A. Pagaltzis wrote:
* Beast <beast i6x org> [2005-07-18 08:20]:

A. Pagaltzis wrote:

Uhm, the docs for TreeView list a “row-activated.” Didn’t you
find that? Doesn’t that do what you want?

It only works when row is _double clicked_, what I want is when
user just clicked the row.


Ah. “cursor-changed” would be my next best guess.


If I double click the row, it will triger both event. Its ok if its do nothing, but what happen if do some heavy task on cursor_changed?

===
$self->{slist}->signal_connect( cursor_changed => sub {
             print "row selected...\n"; } );
$self->{slist}->signal_connect( row_activated => sub {
             print "row activated...\n"; } );


--

--beast




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]