Drag and drop of a Folder path into a text view using C

I’m creating an application using C language, for which I used GTK to develop the GUI part of it. My requirement is, I wanna drag a folder from files manager and drop it in the application I created through GTK test box and get the path of that folder in the Text box I dropped it in. But, I have no clue how do I do it. Can I get a help from anyone for me to achieve this?

1 Like

You can follow the drag and drop tutorial. Files are represented by the text/uri-list target.

1 Like

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