From a72f1d162b1f511d3e9fa54304be695f07c79832 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 13 May 2004 16:05:38 +0000 Subject: [PATCH] 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 --- src/gtk/window.cpp | 15 --------------- src/gtk1/window.cpp | 15 --------------- 2 files changed, 30 deletions(-) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index bfb8c228f8..859efed9c5 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -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; } diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index bfb8c228f8..859efed9c5 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -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; } -- 2.47.2