Remove some old redundant code
Default size stuff is done by PreCreation() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -545,16 +545,10 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
|
|||||||
wxWindowID id,
|
wxWindowID id,
|
||||||
const wxString& title,
|
const wxString& title,
|
||||||
const wxPoint& pos,
|
const wxPoint& pos,
|
||||||
const wxSize& sizeOrig,
|
const wxSize& size,
|
||||||
long style,
|
long style,
|
||||||
const wxString &name )
|
const wxString &name )
|
||||||
{
|
{
|
||||||
// always create a frame of some reasonable, even if arbitrary, size (at
|
|
||||||
// least for MSW compatibility)
|
|
||||||
wxSize size = sizeOrig;
|
|
||||||
size.x = WidthDefault(size.x);
|
|
||||||
size.y = HeightDefault(size.y);
|
|
||||||
|
|
||||||
wxTopLevelWindows.Append( this );
|
wxTopLevelWindows.Append( this );
|
||||||
|
|
||||||
if (!PreCreation( parent, pos, size ) ||
|
if (!PreCreation( parent, pos, size ) ||
|
||||||
|
Reference in New Issue
Block a user