]> git.saurik.com Git - wxWidgets.git/commitdiff
Added temporary test to splitter.
authorRobert Roebling <robert@roebling.de>
Sun, 17 Oct 1999 19:54:51 +0000 (19:54 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 17 Oct 1999 19:54:51 +0000 (19:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/splitter/test.cpp
src/gtk/notebook.cpp
src/gtk1/notebook.cpp

index 64a0228da38804efcd2638de579cbae1d772226f..d443b1ad6728e47daa9669a031147a256c0aa675 100644 (file)
@@ -166,6 +166,9 @@ MyFrame::MyFrame(wxFrame* frame, const wxString& title, const wxPoint& pos, cons
   SetMenuBar(menuBar);
 
   m_splitter = new MySplitterWindow(this, SPLITTER_WINDOW);
+  
+  wxSize sz( m_splitter->GetSize() );
+  wxLogMessage( "Initial splitter size: %d %d\n", (int)sz.x, (int)sz.y );
 
   m_leftCanvas = new MyCanvas(m_splitter, CANVAS1, 0, 0, 400, 400, "Test1" );
   m_leftCanvas->SetBackgroundColour(*wxRED);
index 2c275b44340b074da187b0a8db7ba98052b706c2..f1a03228afb6624552354806795bc824e9797895 100644 (file)
@@ -125,9 +125,7 @@ static void gtk_page_size_callback( GtkWidget *WXUNUSED(widget), GtkAllocation*
     win->SetSize( alloc->x, alloc->y, alloc->width, alloc->height );
 
     if (win->GetAutoLayout())
-    {
         win->Layout();
-    }
 }
 
 //-----------------------------------------------------------------------------
index 2c275b44340b074da187b0a8db7ba98052b706c2..f1a03228afb6624552354806795bc824e9797895 100644 (file)
@@ -125,9 +125,7 @@ static void gtk_page_size_callback( GtkWidget *WXUNUSED(widget), GtkAllocation*
     win->SetSize( alloc->x, alloc->y, alloc->width, alloc->height );
 
     if (win->GetAutoLayout())
-    {
         win->Layout();
-    }
 }
 
 //-----------------------------------------------------------------------------