Backported #10813: wxGTK: Clipboard stops working after some hours

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2009-09-26 16:27:08 +00:00
parent 6a24c14934
commit f5f91412df

View File

@@ -369,6 +369,7 @@ wxClipboard::~wxClipboard()
void wxClipboard::Clear() void wxClipboard::Clear()
{ {
gtk_selection_clear_targets(m_clipboardWidget, m_usePrimary ? GDK_SELECTION_PRIMARY : g_clipboardAtom);
if (m_data) if (m_data)
{ {
#if wxUSE_THREADS #if wxUSE_THREADS