X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/75ce0581545a6c151484e488596ed200c2ffd93e..2cc0e28f6add744e192d196951dc8be7c9cc51f5:/src/gtk1/clipbrd.cpp diff --git a/src/gtk1/clipbrd.cpp b/src/gtk1/clipbrd.cpp index 99ce0ac8b8..b5b3c3cec7 100644 --- a/src/gtk1/clipbrd.cpp +++ b/src/gtk1/clipbrd.cpp @@ -422,13 +422,13 @@ void wxClipboard::Close() m_open = FALSE; } -bool wxClipboard::IsSupported( wxDataObject &data ) +bool wxClipboard::IsSupported( wxDataFormat format ) { wxCHECK_MSG( m_open, FALSE, "clipboard not open" ); /* store requested format to be asked for by callbacks */ - m_targetRequested = data.GetFormat().GetAtom(); + m_targetRequested = format.GetAtom(); wxCHECK_MSG( m_targetRequested, FALSE, "invalid clipboard format" ); @@ -458,21 +458,21 @@ bool wxClipboard::IsSupported( wxDataObject &data ) return TRUE; } -bool wxClipboard::GetData( wxDataObject &data ) +bool wxClipboard::GetData( wxDataObject *data ) { wxCHECK_MSG( m_open, FALSE, "clipboard not open" ); /* is data supported by clipboard ? */ - if (!IsSupported( data )) return FALSE; + if (!IsSupported( data->GetFormat() )) return FALSE; /* store pointer to data object to be filled up by callbacks */ - m_receivedData = &data; + m_receivedData = data; /* store requested format to be asked for by callbacks */ - m_targetRequested = data.GetFormat().GetAtom(); + m_targetRequested = data->GetFormat().GetAtom(); wxCHECK_MSG( m_targetRequested, FALSE, "invalid clipboard format" );