Re: TreeView/ListStore reordering by DND

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

 



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?



_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list




[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux