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:
@@ -795,6 +795,9 @@ bool wxTopLevelWindowGTK::Show( bool show )
|
|||||||
{
|
{
|
||||||
wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
|
wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
|
||||||
|
|
||||||
|
if (show == IsShown())
|
||||||
|
return true;
|
||||||
|
|
||||||
if (show && !m_sizeSet)
|
if (show && !m_sizeSet)
|
||||||
{
|
{
|
||||||
/* by calling GtkOnSize here, we don't have to call
|
/* 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 );
|
GtkOnSize( m_x, m_y, m_width, m_height );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (show)
|
// This seems no longer to be needed and the call
|
||||||
gtk_widget_set_uposition( m_widget, m_x, m_y );
|
// itself is deprecated.
|
||||||
|
//
|
||||||
|
//if (show)
|
||||||
|
// gtk_widget_set_uposition( m_widget, m_x, m_y );
|
||||||
|
|
||||||
return wxWindow::Show( show );
|
return wxWindow::Show( show );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user