]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sizer.cpp
Implemented (for GTK+) and tested dataview_context_menu event
[wxWidgets.git] / src / common / sizer.cpp
index 9bce1d0793d06354cb04d902f44aeb6dc3cc65b0..a35871787601b52b85b7f13e35bbd80d8be80dc9 100644 (file)
@@ -907,18 +907,12 @@ void wxSizer::SetSizeHints( wxWindow *window )
                           window->GetMaxHeight() );
 }
 
                           window->GetMaxHeight() );
 }
 
+#if WXWIN_COMPATIBILITY_2_8
 void wxSizer::SetVirtualSizeHints( wxWindow *window )
 {
 void wxSizer::SetVirtualSizeHints( wxWindow *window )
 {
-    // Preserve the window's max size hints, but set the
-    // lower bound according to the sizer calculations.
-
     FitInside( window );
     FitInside( window );
-    wxSize size( window->GetVirtualSize() );
-    window->SetVirtualSizeHints( size.x,
-                                 size.y,
-                                 window->GetMaxWidth(),
-                                 window->GetMaxHeight() );
 }
 }
+#endif // WXWIN_COMPATIBILITY_2_8
 
 wxSize wxSizer::GetMaxWindowSize( wxWindow *window ) const
 {
 
 wxSize wxSizer::GetMaxWindowSize( wxWindow *window ) const
 {