[Glade-users] GtkTreeView - row select event?
Emmanuel Saracco
esaracco@noos.fr
08 Aug 2003 09:24:06 +0200
Le jeu 07/08/2003 à 16:40, John Coppens a écrit :
> Hello people.
hi john,
> I'm getting my feet wet with the GtkTreeStore & friends, and was looking
> for a way to get an event each time the user selects another item in the
> treeview.
>
> The row-activate requires a double click, I'm not happy about that. Is
> there a way to get events with just selecting? Like the row-selected event
> in the old gtk 1.xx CList? Is it necessary to hang events to each iter?
>
> Can someone give me a hint where to start looking?
use "cursor_changed" + "button_release_event" and test if there is
really something selected when those events occured with
"gtk_tree_view_get_selection" and "gtk_tree_selection_get_selected".
bye
--
Emmanuel Saracco - esaracco@noos.fr
http://emmanuel.saracco.free.fr