- clipboard->m_waiting = FALSE;
- return;
- }
-
- /* make sure we got the data in the correct form */
- if (selection_data->type != GDK_SELECTION_TYPE_ATOM)
- {
- clipboard->m_waiting = FALSE;
- return;
- }
-
-/*
- wxDataFormat clip( selection_data->selection );
- wxLogDebug( wxT("selection received for targets, clipboard %s"), clip.GetId().c_str() );
-*/
-
- // the atoms we received, holding a list of targets (= formats)
- GdkAtom *atoms = (GdkAtom *)selection_data->data;
+ /* make sure we got the data in the correct form */
+ GdkAtom type = selection_data->type;
+ if ( type != GDK_SELECTION_TYPE_ATOM )
+ {
+ if ( strcmp(gdk_atom_name(type), "TARGETS") )
+ {
+ wxLogTrace( TRACE_CLIPBOARD,
+ _T("got unsupported clipboard target") );
+
+ clipboard->m_waiting = FALSE;
+ return;
+ }
+ }