]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/clipbrd.h
replace the static control in wxMessageDialog with an edit control with a vertical...
[wxWidgets.git] / include / wx / gtk / clipbrd.h
index df956005426450f824b76ddad05f91f2bd57cdf6..04f26042eb3c1af0f6acdeb98dd4cc675dc890f8 100644 (file)
@@ -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);