Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Feb. 13, 2005 23:00:52

Gabriel d.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

drag and drop


Hello,
Here is a question about drag and drop.
I have a clipboard-like application, that calls gdk_drag_get_data
several times; this then calls the handler for gtk-drag-data-receive
several times.
It seems it is really difficult to bind what I receive to what I call:
if I want the data once to have a peek and once again to use it, it is
the same signal and there is no way to discriminate. If I want it once
in one format and once again on another, I have to hash on the GdkAtom
on the receiving end. If it gets called once for a drop and once again
for another, I have to hash on the timestamp.
These problems could be solved by adding a user_data struct to
gdk_drag_get_data and to the handler, or by passing an arbitrary
callback to gdk_drag_get_data.

The question is, is it the Xdnd spec that makes it difficult, or is it
gtk.
If I didn't miss anything in the Xdnd spec, the user data would need to
be hooked on the XdndStatus message. How feasible is it?


_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#2 Oct. 31, 2005 17:39:51

Andrew S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

drag and drop


Can anyone recommend resources for getting code samples or relevant
reading on drag and drop using GTK besides functions defined in the GTK+
reference manual?

(http://developer.gnome.org/doc/API/2.0/gtk/gtk-Drag-and-Drop.html)

Regards



_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

Board footer

Moderator control

Enjoy the 20th of November
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support