- if (data_object->GetFormat().GetAtom() == selection_data->target)
- {
- size_t data_size = data_object->GetSize();
-
- if (data_size > 0)
- {
- guchar *buffer = new guchar[data_size];
- data_object->WriteData( buffer );
-
+ if (data_object->GetFormat().GetAtom() == selection_data->target)
+ {
+// printf( "format found.\n" );
+
+ size_t data_size = data_object->GetSize();
+
+ if (data_size > 0)
+ {
+// printf( "data size: %d.\n", (int)data_size );
+
+ guchar *buffer = new guchar[data_size];
+ data_object->WriteData( buffer );
+
+#if wxUSE_THREADS
+ /* disable GUI threads */
+ wxapp_uninstall_thread_wakeup();
+#endif
+