How to find out when the user moves a row


I use a GtkListStore and a GtkTreeView to show a list. I have enabled
that the user may rearrange the rows by dragging them. My problem is
that I want to find out which row is dragged and to where it is dropped.
I thought the "rows_reordered" signal would give me this, but when I
hook up the callback it is never called when I change the ordered. Just
to test I changed the signal to "row_changed" and then the callback gets
called but of course it doesn't work as it was coded for the
"rows_reordered" signal.

Does anybody know if one have to set an event to get the
"rows_reordered" signal to work? Or do anybody have a working example of
how to do this?

Thanks in advance


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