Implementing TreeView's drag and drop for files (documents/ folders)

Hello, I am trying to use TreeView and TreeStore to show files (documents / folders). In this TreeView I want to enable drag and drop but I don’t want to allow files to be dropped into documents.

I want to note, this is something that I am trying to implement with the rust bindings. Even so, what I am really asking what one would do overall, regardless of the language.

Based on the GTK docs, I am getting the idea that someone would subclass TreeStore and override row_drop_possible to stop documents from being a destination. Is this the right move, or am I missing something?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.