Implement wxClipboard::Flush() in wxGTK

Update the documentation and also add a call of Flush() to the sample.

Closes #10515.

Closes https://github.com/wxWidgets/wxWidgets/pull/1316
This commit is contained in:
oneeyeman1
2019-05-04 13:28:59 -05:00
committed by Vadim Zeitlin
parent 02adddfa1a
commit 28a84486bd
4 changed files with 26 additions and 3 deletions

View File

@@ -593,6 +593,12 @@ void wxClipboard::Clear()
m_formatSupported = false;
}
bool wxClipboard::Flush()
{
gtk_clipboard_store( gtk_clipboard_get( GTKGetClipboardAtom() ) );
return true;
}
bool wxClipboard::Open()
{
wxCHECK_MSG( !m_open, false, wxT("clipboard already open") );