+ m_targetRequested = 0;
+
+ if (format == wxDF_TEXT)
+ {
+// m_targetRequested = g_textAtom;
+ m_targetRequested = GDK_TARGET_STRING;
+ }
+
+ if (m_targetRequested == 0) return FALSE;
+
+ gtk_signal_connect( GTK_OBJECT(m_clipboardWidget),
+ "selection_received",
+ GTK_SIGNAL_FUNC( targets_selection_received ),
+ (gpointer) this );
+
+ m_formatSupported = FALSE;
+
+ gtk_selection_convert( m_clipboardWidget,
+ g_clipboardAtom,
+ g_targetsAtom,
+ GDK_CURRENT_TIME );
+
+ gtk_signal_disconnect_by_func( GTK_OBJECT(m_clipboardWidget),
+ GTK_SIGNAL_FUNC( targets_selection_received ),
+ (gpointer) this );
+
+ if (!m_formatSupported) return FALSE;
+
+ return TRUE;
+}
+
+bool wxClipboard::ObtainData( wxDataFormat format )
+{
+ m_receivedSize = 0;
+
+ if (m_receivedData)
+ {
+ delete[] m_receivedData;
+ m_receivedData = (char*) NULL;
+ }
+
+ m_targetRequested = 0;
+
+ if (format == wxDF_TEXT)