From 672cf7d1996c24db3a73e5d9c76881045d6e72f0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 1 Apr 2017 15:48:53 +0200 Subject: [PATCH] Don't hardcode wxSpinCtrl size in the aui sample This makes it too small when using GTK+ 3.22, resulting in GTK+ debug messages about not having enough space for it -- and is, of course, wrong anyhow, as we should always let controls determine their own best size. --- samples/aui/auidemo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/aui/auidemo.cpp b/samples/aui/auidemo.cpp index affb1a9248..c8e425d531 100644 --- a/samples/aui/auidemo.cpp +++ b/samples/aui/auidemo.cpp @@ -1655,7 +1655,7 @@ wxAuiNotebook* MyFrame::CreateNotebook() flex->Add( new wxTextCtrl( panel, -1, wxT(""), wxDefaultPosition, wxSize(100,-1)), 1, wxALL|wxALIGN_CENTRE, 5 ); flex->Add( new wxStaticText( panel, -1, wxT("wxSpinCtrl:") ), 0, wxALL|wxALIGN_CENTRE, 5 ); - flex->Add( new wxSpinCtrl( panel, -1, wxT("5"), wxDefaultPosition, wxSize(100,-1), + flex->Add( new wxSpinCtrl( panel, -1, wxT("5"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 5, 50, 5 ), 0, wxALL|wxALIGN_CENTRE, 5 ); flex->Add( 5,5 ); flex->Add( 5,5 ); panel->SetSizer( flex );