printf => wxLogTrace
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -131,9 +131,16 @@ static gint gtk_debug_focus_in_callback( GtkWidget *WXUNUSED(widget),
|
|||||||
GdkEvent *WXUNUSED(event),
|
GdkEvent *WXUNUSED(event),
|
||||||
const wxChar *name )
|
const wxChar *name )
|
||||||
{
|
{
|
||||||
wxPrintf( _T("FOCUS NOW AT: ") );
|
// to enable logging of the focus events replace 0 with 1
|
||||||
wxPrintf( name );
|
#if 0
|
||||||
wxPrintf( _T("\n") );
|
static bool s_done = FALSE;
|
||||||
|
if ( !s_done )
|
||||||
|
{
|
||||||
|
wxLog::AddTraceMask("focus");
|
||||||
|
s_done = TRUE;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
wxLogTrace(_T("FOCUS NOW AT: %s"), name);
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@@ -131,9 +131,16 @@ static gint gtk_debug_focus_in_callback( GtkWidget *WXUNUSED(widget),
|
|||||||
GdkEvent *WXUNUSED(event),
|
GdkEvent *WXUNUSED(event),
|
||||||
const wxChar *name )
|
const wxChar *name )
|
||||||
{
|
{
|
||||||
wxPrintf( _T("FOCUS NOW AT: ") );
|
// to enable logging of the focus events replace 0 with 1
|
||||||
wxPrintf( name );
|
#if 0
|
||||||
wxPrintf( _T("\n") );
|
static bool s_done = FALSE;
|
||||||
|
if ( !s_done )
|
||||||
|
{
|
||||||
|
wxLog::AddTraceMask("focus");
|
||||||
|
s_done = TRUE;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
wxLogTrace(_T("FOCUS NOW AT: %s"), name);
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user