From 2b835535a92d6c281084c10e46d51029c1eb776d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 15 Oct 1999 15:49:05 +0000 Subject: [PATCH] removed wxDialog::Centre() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gtk/dialog.h | 2 -- include/wx/gtk1/dialog.h | 2 -- src/gtk/dialog.cpp | 13 ------------- src/gtk1/dialog.cpp | 13 ------------- 4 files changed, 30 deletions(-) diff --git a/include/wx/gtk/dialog.h b/include/wx/gtk/dialog.h index cc3cbcac1a..f440b8a6be 100644 --- a/include/wx/gtk/dialog.h +++ b/include/wx/gtk/dialog.h @@ -78,8 +78,6 @@ public: virtual void InitDialog(void); - virtual void Centre( int direction = wxHORIZONTAL ); - virtual void SetIcon( const wxIcon &icon ); virtual void Iconize( bool WXUNUSED(iconize)) { } virtual bool IsIconized() const { return FALSE; } diff --git a/include/wx/gtk1/dialog.h b/include/wx/gtk1/dialog.h index cc3cbcac1a..f440b8a6be 100644 --- a/include/wx/gtk1/dialog.h +++ b/include/wx/gtk1/dialog.h @@ -78,8 +78,6 @@ public: virtual void InitDialog(void); - virtual void Centre( int direction = wxHORIZONTAL ); - virtual void SetIcon( const wxIcon &icon ); virtual void Iconize( bool WXUNUSED(iconize)) { } virtual bool IsIconized() const { return FALSE; } diff --git a/src/gtk/dialog.cpp b/src/gtk/dialog.cpp index a528c57da7..42360a0613 100644 --- a/src/gtk/dialog.cpp +++ b/src/gtk/dialog.cpp @@ -548,19 +548,6 @@ void wxDialog::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y), int width, int heigh GetEventHandler()->ProcessEvent( event ); } -void wxDialog::Centre( int direction ) -{ - wxASSERT_MSG( (m_widget != NULL), wxT("invalid dialog") ); - - int x = 0; - int y = 0; - - if ((direction & wxHORIZONTAL) == wxHORIZONTAL) x = (gdk_screen_width () - m_width) / 2; - if ((direction & wxVERTICAL) == wxVERTICAL) y = (gdk_screen_height () - m_height) / 2; - - Move( x, y ); -} - void wxDialog::OnInternalIdle() { if (!m_sizeSet && GTK_WIDGET_REALIZED(m_wxwindow)) diff --git a/src/gtk1/dialog.cpp b/src/gtk1/dialog.cpp index a528c57da7..42360a0613 100644 --- a/src/gtk1/dialog.cpp +++ b/src/gtk1/dialog.cpp @@ -548,19 +548,6 @@ void wxDialog::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y), int width, int heigh GetEventHandler()->ProcessEvent( event ); } -void wxDialog::Centre( int direction ) -{ - wxASSERT_MSG( (m_widget != NULL), wxT("invalid dialog") ); - - int x = 0; - int y = 0; - - if ((direction & wxHORIZONTAL) == wxHORIZONTAL) x = (gdk_screen_width () - m_width) / 2; - if ((direction & wxVERTICAL) == wxVERTICAL) y = (gdk_screen_height () - m_height) / 2; - - Move( x, y ); -} - void wxDialog::OnInternalIdle() { if (!m_sizeSet && GTK_WIDGET_REALIZED(m_wxwindow)) -- 2.45.2