Re: TreeView/ListStore reordering by DND



On Sat, 2014-03-01 at 19:35 +0100, Stefan Salewski wrote:
Here is my complete C code:

http://www.ssalewski.de/tmp/test.c

Seems to be not really easy?

I found a similar question on stackoverflow (for Python GTK) but no
helpful answers:

http://stackoverflow.com/questions/2831779/catch-pygtk-treeview-reorder


Then I found this:

http://en.wikibooks.org/wiki/GTK%
2B_By_Example/Tree_View/DnD#Dragging_Rows_Around_Within_a_Tree

The introducing comment of that page is:

"This section needs revision more than any other section. If you know
anything about tree view drag'n'drop, you probably know more than the
author of this text."

But that example is interesting, because the "row-changed" signal is
used. Maybe that is the trick -- ignore "row-deleted" and "row-inserted"
and simple assume that two rows are changed at once?





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