FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Copying & the Clipboard

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
JNewt



Joined: 05 Jun 2008
Posts: 69

PostPosted: Thu May 19, 2011 11:51 am    Post subject: Copying & the Clipboard Reply with quote

I'm having trouble figuring out how to make data available for copying. The Clipboard class provides a nice abstraction, but accessing it requires using the static "get" method, which in turn, requires an atom describing which selection type you want. I believe the atom I want is called GDK_SELECTION_CLIPBOARD, but I don't have the faintest idea of how to get it.
What's the right method of doing this?
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Sat May 21, 2011 6:36 am    Post subject: Reply with quote

It looks like the function needed to get the Atom aren't implemented in GtkD.

For now you could try getClipboard(cast(GdkAtom)69);
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group