GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Apr 25, 2014 5:07 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Drag&drop tutorial?
PostPosted: Wed Jul 18, 2007 1:29 pm 
Offline
Familiar Face

Joined: Sat Feb 24, 2007 2:52 pm
Posts: 13
I would want to support file drag&dropping in my gtk+ application. In other words, that the user could drag&drop a file (from example from windows explorer) and then I could read that filename in my application.

The documentation about drag&dropping is rather obscure. I tried calling gtk_drag_dest_set() for my main window widget and connected its "drag-data-received" signal, but I still can't drag&drop anything into the application, at least not in linux (I'm using kde).


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 18, 2007 6:21 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
Unfortunately, there really isn't any good drag-and-drop instruction out there. Your best bet at this point is really just to go to Google Code Search and see how other people are using the API.

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 19, 2007 6:17 am 
Offline
Familiar Face

Joined: Tue Feb 13, 2007 3:45 pm
Posts: 30
Location: Madrid, Spain
Try this.

_________________
David Vilches


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group