]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/clipbrd.cpp
new file added
[wxWidgets.git] / src / gtk / clipbrd.cpp
index 6e02151f4be01e56acd769335aeb58da61497047..aeb6af2ea06ac2538ace64d70cde2ebfd08e342f 100644 (file)
@@ -344,7 +344,7 @@ void wxClipboard::GTKOnSelectionReceived(const GtkSelectionData& sel)
     wxLogTrace(TRACE_CLIPBOARD, wxT("Received selection %s"),
                format.GetId().c_str());
 
-    if ( !m_receivedData->IsSupportedFormat(format) )
+    if ( !m_receivedData->IsSupportedFormat(format, wxDataObject::Set) )
         return;
 
     m_receivedData->SetData(format,
@@ -507,7 +507,7 @@ bool wxClipboard::SetSelectionOwner(bool set)
                 set ? m_clipboardWidget : NULL,
                 GTKGetClipboardAtom(),
                 (guint32)GDK_CURRENT_TIME
-              );
+              ) != 0;
 
     if ( !rc )
     {