GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Drag&drop tutorial?

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
Warp
Familiar Face


Joined: 24 Feb 2007
Posts: 13

PostPosted: Wed Jul 18, 2007 1:29 pm    Post subject: Drag&drop tutorial? Reply with quote

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).
Back to top
openldev
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 387
Location: Fairfax, Virginia

PostPosted: Wed Jul 18, 2007 6:21 pm    Post subject: Reply with quote

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.
Back to top
deusvede
Familiar Face


Joined: 13 Feb 2007
Posts: 29
Location: Madrid, Spain

PostPosted: Thu Jul 19, 2007 6:17 am    Post subject: Reply with quote

Try this.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP