Attempt to add primary selection support, but doesn't work.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -422,7 +422,8 @@ bool wxClipboard::Open()
|
|||||||
wxCHECK_MSG( !m_open, FALSE, _T("clipboard already open") );
|
wxCHECK_MSG( !m_open, FALSE, _T("clipboard already open") );
|
||||||
|
|
||||||
m_open = TRUE;
|
m_open = TRUE;
|
||||||
|
UsePrimarySelection(FALSE);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -547,7 +548,7 @@ bool wxClipboard::IsSupported( wxDataFormat format )
|
|||||||
m_waiting = TRUE;
|
m_waiting = TRUE;
|
||||||
|
|
||||||
gtk_selection_convert( m_targetsWidget,
|
gtk_selection_convert( m_targetsWidget,
|
||||||
g_clipboardAtom,
|
m_usePrimary?GDK_SELECTION_PRIMARY:g_clipboardAtom,
|
||||||
g_targetsAtom,
|
g_targetsAtom,
|
||||||
GDK_CURRENT_TIME );
|
GDK_CURRENT_TIME );
|
||||||
|
|
||||||
@@ -592,7 +593,7 @@ bool wxClipboard::GetData( wxDataObject *data )
|
|||||||
m_waiting = TRUE;
|
m_waiting = TRUE;
|
||||||
|
|
||||||
gtk_selection_convert( m_clipboardWidget,
|
gtk_selection_convert( m_clipboardWidget,
|
||||||
g_clipboardAtom,
|
m_usePrimary?GDK_SELECTION_PRIMARY:g_clipboardAtom,
|
||||||
m_targetRequested,
|
m_targetRequested,
|
||||||
GDK_CURRENT_TIME );
|
GDK_CURRENT_TIME );
|
||||||
|
|
||||||
|
@@ -422,7 +422,8 @@ bool wxClipboard::Open()
|
|||||||
wxCHECK_MSG( !m_open, FALSE, _T("clipboard already open") );
|
wxCHECK_MSG( !m_open, FALSE, _T("clipboard already open") );
|
||||||
|
|
||||||
m_open = TRUE;
|
m_open = TRUE;
|
||||||
|
UsePrimarySelection(FALSE);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -547,7 +548,7 @@ bool wxClipboard::IsSupported( wxDataFormat format )
|
|||||||
m_waiting = TRUE;
|
m_waiting = TRUE;
|
||||||
|
|
||||||
gtk_selection_convert( m_targetsWidget,
|
gtk_selection_convert( m_targetsWidget,
|
||||||
g_clipboardAtom,
|
m_usePrimary?GDK_SELECTION_PRIMARY:g_clipboardAtom,
|
||||||
g_targetsAtom,
|
g_targetsAtom,
|
||||||
GDK_CURRENT_TIME );
|
GDK_CURRENT_TIME );
|
||||||
|
|
||||||
@@ -592,7 +593,7 @@ bool wxClipboard::GetData( wxDataObject *data )
|
|||||||
m_waiting = TRUE;
|
m_waiting = TRUE;
|
||||||
|
|
||||||
gtk_selection_convert( m_clipboardWidget,
|
gtk_selection_convert( m_clipboardWidget,
|
||||||
g_clipboardAtom,
|
m_usePrimary?GDK_SELECTION_PRIMARY:g_clipboardAtom,
|
||||||
m_targetRequested,
|
m_targetRequested,
|
||||||
GDK_CURRENT_TIME );
|
GDK_CURRENT_TIME );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user