for (unsigned int i=0; i<selection_data->length/sizeof(GdkAtom); i++)
{
-/* char *name = gdk_atom_name (atoms[i]);
+/* char *name = gdk_atom_name (atoms[i]);
if (name) printf( "Format available: %s.\n", name ); */
if (atoms[i] == clipboard->m_targetRequested)
m_formatSupported = FALSE;
m_targetRequested = 0;
+
+ m_usePrimary = FALSE;
}
wxClipboard::~wxClipboard()
wxCHECK_MSG( !m_open, FALSE, _T("clipboard already open") );
m_open = TRUE;
-
+
return TRUE;
}
(gpointer) NULL );
#endif
-// printf( "vorher.\n" );
/* Tell the world we offer clipboard data */
if (!gtk_selection_owner_set( m_clipboardWidget,
g_clipboardAtom,
}
m_ownsClipboard = TRUE;
-// printf( "nachher.\n" );
-
- return TRUE;
-
if (!gtk_selection_owner_set( m_clipboardWidget,
GDK_SELECTION_PRIMARY,
GDK_CURRENT_TIME ))
m_waiting = TRUE;
gtk_selection_convert( m_targetsWidget,
- g_clipboardAtom,
+ m_usePrimary?GDK_SELECTION_PRIMARY:g_clipboardAtom,
g_targetsAtom,
GDK_CURRENT_TIME );
m_waiting = TRUE;
gtk_selection_convert( m_clipboardWidget,
- g_clipboardAtom,
+ m_usePrimary?GDK_SELECTION_PRIMARY:g_clipboardAtom,
m_targetRequested,
GDK_CURRENT_TIME );