GTK's dnd is broken, not mine
Added notebook::removepage (not tested) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -486,19 +486,38 @@ void wxListBox::SetDropTarget( wxDropTarget *dropTarget )
|
||||
GList *child = m_list->children;
|
||||
while (child)
|
||||
{
|
||||
#ifdef NEW_GTK_DND_CODE
|
||||
GtkBin *item = GTK_BIN( child->data );
|
||||
m_dropTarget->UnregisterWidget( item->child );
|
||||
#else
|
||||
m_dropTarget->UnregisterWidget( GTK_WIDGET( child->data ) );
|
||||
#endif
|
||||
child = child->next;
|
||||
}
|
||||
}
|
||||
|
||||
wxWindow::SetDropTarget( dropTarget );
|
||||
#ifndef NEW_GTK_DND_CODE
|
||||
if (m_dropTarget) m_dropTarget->UnregisterWidget( m_list );
|
||||
#endif
|
||||
|
||||
if (m_dropTarget) delete m_dropTarget;
|
||||
m_dropTarget = dropTarget;
|
||||
|
||||
#ifndef NEW_GTK_DND_CODE
|
||||
if (m_dropTarget) m_dropTarget->RegisterWidget( dnd_widget );
|
||||
#endif
|
||||
|
||||
if (m_dropTarget)
|
||||
{
|
||||
GList *child = m_list->children;
|
||||
while (child)
|
||||
{
|
||||
#ifdef NEW_GTK_DND_CODE
|
||||
GtkBin *item = GTK_BIN( child->data );
|
||||
m_dropTarget->RegisterWidget( item->child );
|
||||
#else
|
||||
m_dropTarget->RegisterWidget( GTK_WIDGET( child->data ) );
|
||||
#endif
|
||||
child = child->next;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user