|GTK+ 2.0 Tree View Tutorial|
|<<< Previous||Chapter 10. Drag'n'Drop (DnD) **** needs revision ***||Next >>>|
Both GtkListStore and GtkTreeStore implement the GtkTreeDragDest and GtkTreeDragSource interfaces, which means that they have in-built support for row reordering. You need to call gtk_tree_view_set_reorderable to activate this, and then connect to the tree model's signals to catch the reorderings that take place.
*** SOMEONE NEEDS TO WRITE THIS SECTION (I have never gotten this to work in a way that does not suck, ie. where one does not have to place the row to move exact to the pixel on the target row).