A bit more DnD and clipbrd updates

wxTextCtrl now hides the vertical until required


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1998-12-15 08:03:37 +00:00
parent f5d29b396f
commit 2830bf19dc
11 changed files with 672 additions and 528 deletions

View File

@@ -155,7 +155,7 @@ static gint
selection_clear( GtkWidget *WXUNUSED(widget), GdkEventSelection *WXUNUSED(event) )
{
if (!wxTheClipboard) return TRUE;
// the clipboard is no longer in our hands. we have to delete the
// clipboard data.
@@ -307,6 +307,22 @@ bool wxClipboard::SetData( wxDataObject *data )
{
wxCHECK_MSG( data, FALSE, "data is invalid" );
wxNode *node = m_dataObjects.First();
while (node)
{
wxDataObject *d = (wxDataObject*)node->Data();
if (d->GetFormat() == data->GetFormat())
{
m_dataObjects.DeleteNode( node );
break;
}
node = node->Next();
}
m_dataObjects.Append( data );
wxCHECK_MSG( m_open, FALSE, "clipboard not open" );