added some #ifdef __WXDEBUG__ in the proper places around
wxLogTrace(TRACE_DND... statements
Modified Files:
wxWidgets/src/gtk/dnd.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43731
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxLogTrace(TRACE_DND, wxT( "Drop target: OnDrop returned FALSE") );
wxLogTrace(TRACE_DND, wxT( "Drop target: OnDrop returned FALSE") );
/* cancel the whole thing */
gtk_drag_finish( context,
FALSE, /* no success */
/* cancel the whole thing */
gtk_drag_finish( context,
FALSE, /* no success */
wxLogTrace(TRACE_DND, wxT( "Drop target: OnDrop returned true") );
wxLogTrace(TRACE_DND, wxT( "Drop target: OnDrop returned true") );
#if wxUSE_THREADS
/* disable GUI threads */
#endif
#if wxUSE_THREADS
/* disable GUI threads */
#endif
wxLogTrace(TRACE_DND, wxT( "Drop target: data received event") );
wxLogTrace(TRACE_DND, wxT( "Drop target: data received event") );
/* inform the wxDropTarget about the current GtkSelectionData.
this is only valid for the duration of this call */
drop_target->SetDragData( data );
/* inform the wxDropTarget about the current GtkSelectionData.
this is only valid for the duration of this call */
drop_target->SetDragData( data );
if ( wxIsDragResultOk( drop_target->OnData( x, y, result ) ) )
{
if ( wxIsDragResultOk( drop_target->OnData( x, y, result ) ) )
{
wxLogTrace(TRACE_DND, wxT( "Drop target: OnData returned true") );
wxLogTrace(TRACE_DND, wxT( "Drop target: OnData returned true") );
/* tell GTK that data transfer was successful */
gtk_drag_finish( context, TRUE, FALSE, time );
}
else
{
/* tell GTK that data transfer was successful */
gtk_drag_finish( context, TRUE, FALSE, time );
}
else
{
wxLogTrace(TRACE_DND, wxT( "Drop target: OnData returned FALSE") );
wxLogTrace(TRACE_DND, wxT( "Drop target: OnData returned FALSE") );
/* tell GTK that data transfer was not successful */
gtk_drag_finish( context, FALSE, FALSE, time );
}
/* tell GTK that data transfer was not successful */
gtk_drag_finish( context, FALSE, FALSE, time );
}
wxDataFormat format( selection_data->target );
wxDataFormat format( selection_data->target );
wxLogTrace(TRACE_DND, wxT("Drop source: format requested: %s"),
format.GetId().c_str());
wxLogTrace(TRACE_DND, wxT("Drop source: format requested: %s"),
format.GetId().c_str());
drop_source->m_retValue = wxDragCancel;
wxDataObject *data = drop_source->GetDataObject();
if (!data)
{
drop_source->m_retValue = wxDragCancel;
wxDataObject *data = drop_source->GetDataObject();
if (!data)
{
wxLogTrace(TRACE_DND, wxT("Drop source: no data object") );
wxLogTrace(TRACE_DND, wxT("Drop source: no data object") );
}
if (!data->IsSupportedFormat(format))
{
}
if (!data->IsSupportedFormat(format))
{
wxLogTrace(TRACE_DND, wxT("Drop source: unsupported format") );
wxLogTrace(TRACE_DND, wxT("Drop source: unsupported format") );
}
if (data->GetDataSize(format) == 0)
{
}
if (data->GetDataSize(format) == 0)
{
wxLogTrace(TRACE_DND, wxT("Drop source: empty data") );
wxLogTrace(TRACE_DND, wxT("Drop source: empty data") );
}
size_t size = data->GetDataSize(format);
}
size_t size = data->GetDataSize(format);
for (size_t i = 0; i < count; i++)
{
GdkAtom atom = array[i];
for (size_t i = 0; i < count; i++)
{
GdkAtom atom = array[i];
wxLogTrace(TRACE_DND, wxT("Drop source: Supported atom %s"), gdk_atom_name( atom ));
wxLogTrace(TRACE_DND, wxT("Drop source: Supported atom %s"), gdk_atom_name( atom ));
- gtk_target_list_add( target_list, atom, 0, 0 );
+#endif
+ gtk_target_list_add( target_list, atom, 0, 0 );