Copyright 2008, 2009 Kevin Ryde
This file is part of Gtk2-Ex-TreeModelFilter-DragDest.
Gtk2-Ex-TreeModelFilter-DragDest is free software; you can
redistribute it and/or modify it under the terms of the GNU General
Public License as published by the Free Software Foundation; either
version 3, or (at your option) any later version.
Gtk2-Ex-TreeModelFilter-DragDest is distributed in the hope that it
will be useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Gtk2-Ex-TreeModelFilter-DragDest. If not, see
<http://www.gnu.org/licenses/>.
Gtk2-Ex-TreeModelFilter-DragDest adds the TreeDragDest interface to
GtkTreeModelFilter objects. As of Gtk 2.12 a filtered model is a drag
source, but not a drag destination. With DragDest you can drag and
drop to re-order rows in a TreeView.
The code here takes two forms,
* A TreeModelFilter::Draggable subclass of TreeModelFilter, for
use wherever you would have had a plain filter.
* The DragDest code separately, to mix-in to any TreeModelFilter
derivative you might further subclass.
The only prerequisite is Gtk2-Perl. The TreeModelFilter-DragDest home
page is
http://user42.tuxfamily.org/gtk2-ex-treemodelfilter-dragdest/index.html