-GdkAtom wxClipboard::GetTargetAtom( wxDataFormat format, const wxString &id )
-{
- // What is X representation of that format?
-
- switch (format)
- {
- case wxDF_TEXT:
- {
- return GDK_TARGET_STRING;
- // g_textAtom
- }
-
- case wxDF_BITMAP:
- {
- return GDK_TARGET_BITMAP;
- break;
- }
-
- case wxDF_PRIVATE:
- {
- // we create our own X representation
-
- return gdk_atom_intern( WXSTRINGCAST( id ), FALSE );
- }
-
- default:
- {
- return (GdkAtom) 0;
- }
- }
-
- return (GdkAtom) 0;
-}
-