]> git.saurik.com Git - wxWidgets.git/commitdiff
-1 is kept -1 as a wxWindowID
authorRobert Roebling <robert@roebling.de>
Wed, 12 May 1999 15:19:35 +0000 (15:19 +0000)
committerRobert Roebling <robert@roebling.de>
Wed, 12 May 1999 15:19:35 +0000 (15:19 +0000)
  removed som edebug code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wincmn.cpp
src/gtk/app.cpp
src/gtk/window.cpp
src/gtk1/app.cpp
src/gtk1/window.cpp

index 611ab2b4c0b0947c21bb5397d18251b05400167d..37d54450d7eb6adc70c3ae484525d7efb5d49e64 100644 (file)
@@ -152,7 +152,8 @@ bool wxWindowBase::CreateBase(wxWindowBase *parent,
     wxASSERT_MSG( m_isWindow, _T("Init() must have been called before!") );
 
     // generate a new id if the user doesn't care about it
-    m_windowId = id == -1 ? NewControlId() : id;
+      // No, we keep the -1 from now on. RR.
+//    m_windowId = id == -1 ? NewControlId() : id;
 
     SetName(name);
     SetWindowStyleFlag(style);
index b7ed1c12ce07437ccbf4b89f9a2fa102721b4f25..c35b4af51d464f6860aba32b88ebb98a7476b902 100644 (file)
@@ -193,6 +193,7 @@ gint wxapp_idle_callback( gpointer WXUNUSED(data) )
     g_isIdle = TRUE;
     
     /* wake up other threads */
+
     wxMutexGuiLeave();
     wxUsleep(0);
     wxMutexGuiEnter();
index 50d64dbc9167a40e18bef2e9532f63164232b3b4..03061a90c8449f4dbd85f4bc0ba2d2e9d4139853 100644 (file)
@@ -145,16 +145,15 @@ static gint gtk_debug_focus_in_callback( GtkWidget *WXUNUSED(widget),
                                          GdkEvent *WXUNUSED(event),
                                          const wxChar *name )
 {
-    // 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;
 }
@@ -656,7 +655,6 @@ static gint gtk_window_button_press_callback( GtkWidget *widget, GdkEventButton
         wxPrintf( win->GetClassInfo()->GetClassName() );
     wxPrintf( _T(".\n") );
 */
-
     if (!win->m_hasVMT) return FALSE;
     if (g_blockEventsOnDrag) return TRUE;
     if (g_blockEventsOnScroll) return TRUE;
index b7ed1c12ce07437ccbf4b89f9a2fa102721b4f25..c35b4af51d464f6860aba32b88ebb98a7476b902 100644 (file)
@@ -193,6 +193,7 @@ gint wxapp_idle_callback( gpointer WXUNUSED(data) )
     g_isIdle = TRUE;
     
     /* wake up other threads */
+
     wxMutexGuiLeave();
     wxUsleep(0);
     wxMutexGuiEnter();
index 50d64dbc9167a40e18bef2e9532f63164232b3b4..03061a90c8449f4dbd85f4bc0ba2d2e9d4139853 100644 (file)
@@ -145,16 +145,15 @@ static gint gtk_debug_focus_in_callback( GtkWidget *WXUNUSED(widget),
                                          GdkEvent *WXUNUSED(event),
                                          const wxChar *name )
 {
-    // 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;
 }
@@ -656,7 +655,6 @@ static gint gtk_window_button_press_callback( GtkWidget *widget, GdkEventButton
         wxPrintf( win->GetClassInfo()->GetClassName() );
     wxPrintf( _T(".\n") );
 */
-
     if (!win->m_hasVMT) return FALSE;
     if (g_blockEventsOnDrag) return TRUE;
     if (g_blockEventsOnScroll) return TRUE;