git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2741
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxCHECK_MSG( !m_open, FALSE, _T("clipboard already open") );
m_open = TRUE;
-
+ UsePrimarySelection(FALSE);
+
return TRUE;
}
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 );
wxCHECK_MSG( !m_open, FALSE, _T("clipboard already open") );
m_open = TRUE;
-
+ UsePrimarySelection(FALSE);
+
return TRUE;
}
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 );