}
else
{
+ wxTheClipboard->m_waiting = FALSE;
return FALSE;
}
}
}
+ wxTheClipboard->m_waiting = FALSE;
return TRUE;
}
if (data_object->GetFormat().GetAtom() != selection_data->target)
{
node = node->Next();
- break;
+ continue;
}
switch (data_object->GetFormat().GetType())
if (gdk_selection_owner_get( g_clipboardAtom ) == m_clipboardWidget->window)
{
+ m_waiting = TRUE;
+
gtk_selection_owner_set( (GtkWidget*) NULL, g_clipboardAtom, GDK_CURRENT_TIME );
+
+ while (m_waiting) gtk_main_iteration();
}
if (gdk_selection_owner_get( GDK_SELECTION_PRIMARY ) == m_clipboardWidget->window)
{
+ m_waiting = TRUE;
+
gtk_selection_owner_set( (GtkWidget*) NULL, GDK_SELECTION_PRIMARY, GDK_CURRENT_TIME );
+
+ while (m_waiting) gtk_main_iteration();
}
if (m_dataBroker)