]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/toplvcmn.cpp
Partially applied patch [ 763900 ] fix for vertical toolbar
[wxWidgets.git] / src / common / toplvcmn.cpp
index 4c640caae444749db900d12be0a23b7a7f6e7911..8768de7360de4fe2f0f4de89663baaaf7637f137 100644 (file)
@@ -215,4 +215,17 @@ bool wxTopLevelWindowBase::SendIconizeEvent(bool iconized)
     return GetEventHandler()->ProcessEvent(event);
 }
 
     return GetEventHandler()->ProcessEvent(event);
 }
 
+// do the window-specific processing after processing the update event
+void wxTopLevelWindowBase::DoUpdateWindowUI(wxUpdateUIEvent& event)
+{
+    if ( event.GetSetEnabled() )
+        Enable(event.GetEnabled());
+    
+    if ( event.GetSetText() )
+    {
+        if ( event.GetText() != GetTitle() )
+            SetTitle(event.GetText());
+    }
+}
+
 // vi:sts=4:sw=4:et
 // vi:sts=4:sw=4:et