X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e62b7692622880d48b62f555c1e356883232956c..dfb39a3727a85d0e075b10d9a9388be514d2f8e1:/src/gtk/toplevel.cpp diff --git a/src/gtk/toplevel.cpp b/src/gtk/toplevel.cpp index 414ecd652f..9e2a4176f9 100644 --- a/src/gtk/toplevel.cpp +++ b/src/gtk/toplevel.cpp @@ -545,10 +545,12 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos, - const wxSize& size, + const wxSize& sizeOrig, long style, const wxString &name ) { + const wxSize size(WidthDefault(sizeOrig.x), HeightDefault(sizeOrig.y)); + wxTopLevelWindows.Append( this ); if (!PreCreation( parent, pos, size ) || @@ -747,9 +749,6 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent, gtk_window_set_policy(GTK_WINDOW(m_widget), 1, 1, 1); #endif - // GTK sometimes chooses very small size if max size hint is not explicitly set - DoSetSizeHints(m_minWidth, m_minHeight, m_maxWidth, m_maxHeight, m_incWidth, m_incHeight); - m_decorSize = GetCachedDecorSize(); int w, h; GTKDoGetSize(&w, &h);