Re: Cancel a Drag & Drop for some specific items in a Gtk.TreeView



On 2018-09-11 13:50 Yuri Khan <yurivkhan gmail com> wrote:
Reading the “GtkTreeView drag-and-drop”[1] page, I get the impression
that you’d need to implement a wrapper around GtkTreeStore, or
possibly a class derived from GtkTreeStore, that also overrides the
row_draggable method so that it returns False for non-draggable rows.

Thanks for the hint.

It is Gtk.TreeView.do_row_draggable()

https://lazka.github.io/pgi-docs/Gtk-3.0/classes/TreeDragSource.html#Gtk.TreeDragSource.do_row_draggable



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