[Gtk-sharp-list] TreeView Event 'CursorChanged' Problem
Todd Berman
tberman@sevenl.net
Sat, 27 Mar 2004 23:00:24 -0500
I think the TreeView.Selection.Changed event is what you are looking
for.
Alternatively, there is a TreeView.RowActivated that is triggered on
double click or on certain keypresses like Enter.
--Todd
On Sat, 2004-03-27 at 22:55 -0500, Joe Scaduto wrote:
> Hello,
>
> I have a TreeStore containing one column of strings with a treeview
> whose selection mode is single. Initially no row is selected. I want
> to catch when a user selects one of the rows. I tried the event
> 'CursorChanged' and the first selection the user makes, the event is
> emitted twice. But after the first selection the event is emitted only
> once when a row different other then the current one is selected. I
> also tried the 'Changed' event and got the same results. Any info. on
> why the events are emitted twice initially would be greatly appreciated
> or a better way of catching when a user selects a row different from the
> current one.
>
> Thanks
>
> Joe
>
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list