Sign up

Interning GdkAtoms in Gtk2?

I'm implementing custom Drag-and-Drop support in my application--and to use Selections.dataSet(), I need a GdkAtom to represent the format of the data--Unfortunately, I can't find out how to create one of these; in C, it appears to be gdkatomintern(), but I'm not able to find a binding to this, or anything else that makes these in GtkD1.

Re: Interning GdkAtoms in Gtk2?

On 03/02/2014 03:21 AM, E.S. Quinn wrote:

I'm implementing custom Drag-and-Drop support in my application--and to use Selections.dataSet(), I need a GdkAtom to represent the format of the data--Unfortunately, I can't find out how to create one of these; in C, it appears to be gdkatomintern(), but I'm not able to find a binding to this, or anything else that makes these in GtkD1.

I've added gdk.Atoms to the Gtk2 branch:
https://github.com/gtkd-developers/GtkD/commit/1c79491ffecf77c5cf980a245d93e56a30ddd64f