Corrected byte swapping macros.
Added test for them to typetest. Removed debug code from wxClipboard. Added empty compat. call to wxMSW's clipboard. Added for primary selection to sample/text. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -450,10 +450,15 @@ void MyPanel::OnPasteFromClipboard( wxCommandEvent &WXUNUSED(event) )
|
||||
// parts in wxUSE_DRAG_AND_DROP.
|
||||
|
||||
#if wxUSE_CLIPBOARD && wxUSE_DRAG_AND_DROP
|
||||
|
||||
// On X11, we want to get the data from the primary selection instead
|
||||
// of the normal clipboard (which isn't normal under X11 at all). This
|
||||
// call has no effect under MSW.
|
||||
wxTheClipboard->UsePrimarySelection();
|
||||
|
||||
if (!wxTheClipboard->Open())
|
||||
{
|
||||
*m_log << "Error opening the clipboard.\n";
|
||||
|
||||
return;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user