Pike v8.1 release 6

Method GTK2.TreeView()->set_reorderable()


Method set_reorderable

GTK2.TreeView set_reorderable(int reorderable)

Description

This function is a convenience function to allow you to reorder models. If reorderable is true, then the user can reorder the model by dragging and dropping rows. The developer can listen to these changes by connecting to the model's "row-inserted" and "row-deleted" signals.

This function does not give you any degree of control over the order -- any reordering is allowed. If more control is needed, you should probably handle drag and drop manually.