Corrected wxCHECK calls in bitmap.cpp

Added drop side of new DnD for GTK 1.1.3 without success
  Streamlined DnD
  Corrected frame resize for GTK 1.06


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1998-11-23 22:54:15 +00:00
parent 8baa0e6180
commit 33a5bc5299
10 changed files with 486 additions and 408 deletions

View File

@@ -163,7 +163,7 @@ void wxListBox::AppendCommon( const wxString &item )
ConnectWidget( list_item );
ConnectDnDWidget( list_item );
if (m_dropTarget) m_dropTarget->RegisterWidget( list_item );
}
void wxListBox::Append( const wxString &item )
@@ -481,20 +481,26 @@ void wxListBox::SetDropTarget( wxDropTarget *dropTarget )
{
wxCHECK_RET( m_list != NULL, "invalid listbox" );
GList *child = m_list->children;
while (child)
if (m_dropTarget)
{
DisconnectDnDWidget( GTK_WIDGET( child->data ) );
child = child->next;
GList *child = m_list->children;
while (child)
{
m_dropTarget->UnregisterWidget( GTK_WIDGET( child->data ) );
child = child->next;
}
}
wxWindow::SetDropTarget( dropTarget );
child = m_list->children;
while (child)
if (m_dropTarget)
{
ConnectDnDWidget( GTK_WIDGET( child->data ) );
child = child->next;
GList *child = m_list->children;
while (child)
{
m_dropTarget->RegisterWidget( GTK_WIDGET( child->data ) );
child = child->next;
}
}
}