Do nothing in wxTLW::Show() if t already is

shown.
  Don't call gtk_widget_set_uposition() there
    anymore, since it is useless, deprectased
    and causes surplus move events.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2006-08-01 16:39:31 +00:00
parent 838bdeaa7b
commit 416d721d4b

View File

@ -795,6 +795,9 @@ bool wxTopLevelWindowGTK::Show( bool show )
{
wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
if (show == IsShown())
return true;
if (show && !m_sizeSet)
{
/* by calling GtkOnSize here, we don't have to call
@ -805,8 +808,11 @@ bool wxTopLevelWindowGTK::Show( bool show )
GtkOnSize( m_x, m_y, m_width, m_height );
}
if (show)
gtk_widget_set_uposition( m_widget, m_x, m_y );
// This seems no longer to be needed and the call
// itself is deprecated.
//
//if (show)
// gtk_widget_set_uposition( m_widget, m_x, m_y );
return wxWindow::Show( show );
}