]> git.saurik.com Git - wxWidgets.git/commitdiff
printf => wxLogTrace
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 6 May 1999 18:40:04 +0000 (18:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 6 May 1999 18:40:04 +0000 (18:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp
src/gtk1/window.cpp

index f03c85f08a912bde15d7952a3abd409fec0b68b5..ee5fd3142db1dcbd1c9f66f5830f993b1a552d5e 100644 (file)
@@ -131,9 +131,16 @@ static gint gtk_debug_focus_in_callback( GtkWidget *WXUNUSED(widget),
                                          GdkEvent *WXUNUSED(event),
                                          const wxChar *name )
 {
                                          GdkEvent *WXUNUSED(event),
                                          const wxChar *name )
 {
-    wxPrintf( _T("FOCUS NOW AT: ") );
-    wxPrintf( name );
-    wxPrintf( _T("\n") );
+    // to enable logging of the focus events replace 0 with 1
+#if 0
+    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;
 }
index f03c85f08a912bde15d7952a3abd409fec0b68b5..ee5fd3142db1dcbd1c9f66f5830f993b1a552d5e 100644 (file)
@@ -131,9 +131,16 @@ static gint gtk_debug_focus_in_callback( GtkWidget *WXUNUSED(widget),
                                          GdkEvent *WXUNUSED(event),
                                          const wxChar *name )
 {
                                          GdkEvent *WXUNUSED(event),
                                          const wxChar *name )
 {
-    wxPrintf( _T("FOCUS NOW AT: ") );
-    wxPrintf( name );
-    wxPrintf( _T("\n") );
+    // to enable logging of the focus events replace 0 with 1
+#if 0
+    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;
 }