diff --git a/src/gtk/button.cpp b/src/gtk/button.cpp index 68e6eb5346..a3f1123908 100644 --- a/src/gtk/button.cpp +++ b/src/gtk/button.cpp @@ -212,6 +212,10 @@ wxSize wxButton::DoGetBestSize() const { wxSize ret( wxControl::DoGetBestSize() ); +#ifndef __WXGTK20__ + ret.x += 10; // add a few pixels for sloppy (but common) themes +#endif + if (!HasFlag(wxBU_EXACTFIT)) { if (ret.x < 80) ret.x = 80; diff --git a/src/gtk1/button.cpp b/src/gtk1/button.cpp index 68e6eb5346..a3f1123908 100644 --- a/src/gtk1/button.cpp +++ b/src/gtk1/button.cpp @@ -212,6 +212,10 @@ wxSize wxButton::DoGetBestSize() const { wxSize ret( wxControl::DoGetBestSize() ); +#ifndef __WXGTK20__ + ret.x += 10; // add a few pixels for sloppy (but common) themes +#endif + if (!HasFlag(wxBU_EXACTFIT)) { if (ret.x < 80) ret.x = 80;