Patch [ 952969 ] Parentless windows forced to center of screen
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
baaa1d1a58
commit
a72f1d162b
@ -2798,21 +2798,6 @@ bool wxWindowGTK::PreCreation( wxWindowGTK *parent, const wxPoint &pos, const w
|
||||
m_x = (int)pos.x;
|
||||
m_y = (int)pos.y;
|
||||
|
||||
// some reasonable defaults
|
||||
if (!parent)
|
||||
{
|
||||
if (m_x == -1)
|
||||
{
|
||||
m_x = (gdk_screen_width () - m_width) / 2;
|
||||
if (m_x < 10) m_x = 10;
|
||||
}
|
||||
if (m_y == -1)
|
||||
{
|
||||
m_y = (gdk_screen_height () - m_height) / 2;
|
||||
if (m_y < 10) m_y = 10;
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -2798,21 +2798,6 @@ bool wxWindowGTK::PreCreation( wxWindowGTK *parent, const wxPoint &pos, const w
|
||||
m_x = (int)pos.x;
|
||||
m_y = (int)pos.y;
|
||||
|
||||
// some reasonable defaults
|
||||
if (!parent)
|
||||
{
|
||||
if (m_x == -1)
|
||||
{
|
||||
m_x = (gdk_screen_width () - m_width) / 2;
|
||||
if (m_x < 10) m_x = 10;
|
||||
}
|
||||
if (m_y == -1)
|
||||
{
|
||||
m_y = (gdk_screen_height () - m_height) / 2;
|
||||
if (m_y < 10) m_y = 10;
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user