- case wxDF_TEXT:
- {
- if (selection_data->type != GDK_SELECTION_TYPE_STRING)
- {
- clipboard->m_waiting = FALSE;
- return;
- }
-
- wxTextDataObject *text_object = (wxTextDataObject *) data_object;
-
- wxString text = (const char*) selection_data->data;
-
- text_object->SetText( text );
-
- break;
- }
-
- case wxDF_BITMAP:
- {
- if (selection_data->type != GDK_SELECTION_TYPE_STRING)
- {
- clipboard->m_waiting = FALSE;
- return;
- }
-
- wxBitmapDataObject *bitmap_object = (wxBitmapDataObject *) data_object;
-
- bitmap_object->SetPngData( (const void*) selection_data->data, (size_t) selection_data->length );
-
- break;
- }
-
- case wxDF_PRIVATE:
- {
- if (selection_data->type != GDK_SELECTION_TYPE_STRING)
- {
- clipboard->m_waiting = FALSE;
- return;
- }
-
- wxPrivateDataObject *private_object = (wxPrivateDataObject *) data_object;
-
- private_object->SetData( (const char*) selection_data->data, (size_t) selection_data->length );
-
- break;
- }
-
- default:
- {
- clipboard->m_waiting = FALSE;
- return;
- }