//----------------------------------------------------------------------------
// global data
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// global data
//----------------------------------------------------------------------------
// the trace mask we use with wxLogTrace() - call
// wxLog::AddTraceMask(TRACE_DND) to enable the trace messages from here
// (there are quite a few of them, so don't enable this by default)
// the trace mask we use with wxLogTrace() - call
// wxLog::AddTraceMask(TRACE_DND) to enable the trace messages from here
// (there are quite a few of them, so don't enable this by default)
drop_target->m_firstMotion = true;
/* after this, invalidate the drop_target's GdkDragContext */
drop_target->m_firstMotion = true;
/* after this, invalidate the drop_target's GdkDragContext */
GdkAtom format = drop_target->GetMatchingPair();
// this does happen somehow, see bug 555111
GdkAtom format = drop_target->GetMatchingPair();
// this does happen somehow, see bug 555111
- // disable the debug message from GetMatchingPair() - there are too many
- // of them otherwise
-#ifdef __WXDEBUG__
- wxLogNull noLog;
-#endif // Debug
-
- return (GetMatchingPair() != (GdkAtom) 0) ? def : wxDragNone;
+ // disable the debug message from GetMatchingPair() by passing true to it
+ return (GetMatchingPair(true) != (GdkAtom) 0) ? def : wxDragNone;
-#ifdef __WXDEBUG__
- wxLogTrace(TRACE_DND, wxT("Drop target: drag has format: %s"),
- format.GetId().c_str());
-#endif // Debug
+ if ( !quiet )
+ {
+ wxLogTrace(TRACE_DND, wxT("Drop target: drag has format: %s"),
+ format.GetId().c_str());
+ }
gtk_drag_dest_set( widget,
(GtkDestDefaults) 0, /* no default behaviour */
gtk_drag_dest_set( widget,
(GtkDestDefaults) 0, /* no default behaviour */
0, /* number of targets = 0 */
(GdkDragAction) 0 ); /* we don't supply any actions here */
0, /* number of targets = 0 */
(GdkDragAction) 0 ); /* we don't supply any actions here */