diff --git a/docs/changes.txt b/docs/changes.txt index b14ab8300a..b9721259f6 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -574,6 +574,10 @@ All: - Fix crash if wxCharBuffer fails to allocate the requested amount of memory. +wxGTK: + +- Fix wxSpinButton default width under GTK+ 3 (David Hart). + 3.0-RC2: (released 2013-10-28) ------------------------------ diff --git a/src/gtk/spinbutt.cpp b/src/gtk/spinbutt.cpp index e7c559502b..b211012cef 100644 --- a/src/gtk/spinbutt.cpp +++ b/src/gtk/spinbutt.cpp @@ -207,7 +207,13 @@ GdkWindow *wxSpinButton::GTKGetWindow(wxArrayGdkWindows& WXUNUSED(windows)) cons wxSize wxSpinButton::DoGetBestSize() const { - wxSize best(15, 26); // FIXME + int width = +#ifdef __WXGTK3__ + 48; +#else + 15; +#endif + wxSize best(width, 26); // FIXME CacheBestSize(best); return best; }