projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
corrected inverted test in IsEmpty() (patch 1936052)
[wxWidgets.git]
/
include
/
wx
/
gtk
/
clipbrd.h
diff --git
a/include/wx/gtk/clipbrd.h
b/include/wx/gtk/clipbrd.h
index df956005426450f824b76ddad05f91f2bd57cdf6..04f26042eb3c1af0f6acdeb98dd4cc675dc890f8 100644
(file)
--- a/
include/wx/gtk/clipbrd.h
+++ b/
include/wx/gtk/clipbrd.h
@@
-73,12
+73,19
@@
public:
bool GTKOnTargetReceived(const wxDataFormat& format);
private:
bool GTKOnTargetReceived(const wxDataFormat& format);
private:
+ // the data object for the specific selection
+ wxDataObject *& Data(Kind kind)
+ {
+ return kind == Primary ? m_dataPrimary : m_dataClipboard;
+ }
+
// the data object we're currently using
wxDataObject *& Data()
{
// the data object we're currently using
wxDataObject *& Data()
{
- return
m_usePrimary ? m_dataPrimary : m_dataClipboard
;
+ return
Data(m_usePrimary ? Primary : Clipboard)
;
}
}
+
// set or unset selection ownership
bool SetSelectionOwner(bool set = true);
// set or unset selection ownership
bool SetSelectionOwner(bool set = true);