Re: Cancel a Drag & Drop for some specific items in a Gtk.TreeView
- From: <c buhtz posteo jp>
- To: gtk-app-devel-list list <gtk-app-devel-list gnome org>
- Subject: Re: Cancel a Drag & Drop for some specific items in a Gtk.TreeView
- Date: Tue, 11 Sep 2018 23:09:33 +0200
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]