- /* Add handlers if someone requests data */
-
-
-#if (GTK_MINOR_VERSION > 0)
-
- gtk_selection_add_target( GTK_WIDGET(m_clipboardWidget),
+ /* get formats from wxDataObjects */
+ wxDataFormat *array = new wxDataFormat[ m_data->GetFormatCount() ];
+ m_data->GetAllFormats( array );
+
+ for (size_t i = 0; i < m_data->GetFormatCount(); i++)
+ {
+ GdkAtom atom = array[i];
+ wxLogDebug( wxT("Clipboard Supported atom %s"), gdk_atom_name( atom ) );
+
+ /* Add handlers if someone requests data. We currently always
+ offer data to the clipboard and the primary selection. Maybe
+ we should make that depend on the usePrimary flag */
+
+ gtk_selection_add_target( GTK_WIDGET(m_clipboardWidget),