]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/window.cpp
added wxLog::ClearTraceMasks()
[wxWidgets.git] / src / gtk / window.cpp
index 797888dd428ccf5786c911af3052a5940feca93a..8adc34fead87a4ac07986a73d7f3e9498786f92f 100644 (file)
@@ -2948,6 +2948,16 @@ bool wxWindow::Enable( bool enable )
     if ( m_wxwindow )
         gtk_widget_set_sensitive( m_wxwindow, enable );
 
+    // Recurse, so that children have the opportunity to Do The Right Thing.
+    for ( wxWindowList::Node *node = GetChildren().GetFirst();
+          node;
+          node = node->GetNext() )
+    {
+        wxWindow *child = node->GetData();
+       if (!child->IsKindOf(CLASSINFO(wxDialog)) && !child->IsKindOf(CLASSINFO(wxFrame)))
+            child->Enable(enable);
+    }
+
     return TRUE;
 }