From e839ce8d9b4f6d696891a1b99507fc1a09b424d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Thu, 10 Jun 1999 17:13:56 +0000 Subject: [PATCH] Attempt to add primary selection support. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gtk/clipbrd.h | 6 +++++- include/wx/gtk1/clipbrd.h | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/include/wx/gtk/clipbrd.h b/include/wx/gtk/clipbrd.h index 508a3b0dd7..d940100715 100644 --- a/include/wx/gtk/clipbrd.h +++ b/include/wx/gtk/clipbrd.h @@ -71,6 +71,10 @@ public: // clears wxTheClipboard and the system's clipboard if possible virtual void Clear(); + /// If primary == TRUE, use primary selection in all further ops, + /// primary=FALSE resets it. + inline void UsePrimarySelection(bool primary = TRUE) { m_usePrimary = primary; } + // implementation bool m_open; @@ -85,7 +89,7 @@ public: bool m_formatSupported; GdkAtom m_targetRequested; - + bool m_usePrimary; wxDataObject *m_receivedData; }; diff --git a/include/wx/gtk1/clipbrd.h b/include/wx/gtk1/clipbrd.h index 508a3b0dd7..d940100715 100644 --- a/include/wx/gtk1/clipbrd.h +++ b/include/wx/gtk1/clipbrd.h @@ -71,6 +71,10 @@ public: // clears wxTheClipboard and the system's clipboard if possible virtual void Clear(); + /// If primary == TRUE, use primary selection in all further ops, + /// primary=FALSE resets it. + inline void UsePrimarySelection(bool primary = TRUE) { m_usePrimary = primary; } + // implementation bool m_open; @@ -85,7 +89,7 @@ public: bool m_formatSupported; GdkAtom m_targetRequested; - + bool m_usePrimary; wxDataObject *m_receivedData; }; -- 2.47.2