From: Thomas Debesse Date: Sun, 24 Feb 2019 01:41:32 +0000 (+0100) Subject: properpanes dimensions X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=71ef2336cbab4cca1d1b228cdb89601f6569c107;p=xonotic%2Fnetradiant.git properpanes dimensions fix a minor merge mistake --- diff --git a/radiant/mainframe.cpp b/radiant/mainframe.cpp index a4429fc1..8581cc4c 100644 --- a/radiant/mainframe.cpp +++ b/radiant/mainframe.cpp @@ -2987,16 +2987,20 @@ void MainFrame::Create(){ if ( CurrentStyle() == eRegular || CurrentStyle() == eRegularLeft ) { { ui::Widget hsplit = ui::HPaned(ui::New); - m_vSplit = hsplit; + m_hSplit = hsplit; + vbox.pack_start( hsplit, TRUE, TRUE, 0 ); hsplit.show(); + { ui::Widget vsplit = ui::VPaned(ui::New); vsplit.show(); m_vSplit = vsplit; + ui::Widget vsplit2 = ui::VPaned(ui::New); vsplit2.show(); - m_vSplit = vsplit2; + m_vSplit2 = vsplit2; + if ( CurrentStyle() == eRegular ){ gtk_paned_add1( GTK_PANED( hsplit ), vsplit ); gtk_paned_add2( GTK_PANED( hsplit ), vsplit2 ); @@ -3014,8 +3018,8 @@ void MainFrame::Create(){ m_pXYWnd = new XYWnd(); m_pXYWnd->SetViewType( XY ); ui::Widget xy_window = ui::Widget(create_framed_widget( m_pXYWnd->GetWidget( ) )); - gtk_paned_add1( GTK_PANED( vsplit ), xy_window ); + { // camera m_pCamWnd = NewCamWnd();