GdkAtom g_targetsAtom = 0;
GdkAtom g_timestampAtom = 0;
-#if defined(__WXGTK20__) && wxUSE_UNICODE
+#if wxUSE_UNICODE
extern GdkAtom g_altTextAtom;
#endif
gtk_selection_data_set_text(
selection_data,
(const gchar*)d,
- size-1 );
+ size );
}
else
{
GDK_SELECTION_TYPE_STRING,
8*sizeof(gchar),
(unsigned char*) d,
- size-1 );
+ size );
}
free(d);
while (m_waiting) gtk_main_iteration();
-#if defined(__WXGTK20__) && wxUSE_UNICODE
+#if wxUSE_UNICODE
if (!m_formatSupported && format == wxDataFormat(wxDF_UNICODETEXT))
{
// Another try with plain STRING format