avoid GDK warnings about invalid windows when creating wxTopLevel::Refresh too early
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e2c33b5595
commit
92f9888cec
@ -781,8 +781,10 @@ void wxTopLevelWindowGTK::Refresh( bool WXUNUSED(eraseBackground), const wxRect
|
||||
{
|
||||
wxCHECK_RET( m_widget, wxT("invalid frame") );
|
||||
|
||||
gtk_widget_queue_draw( m_widget );
|
||||
gdk_window_invalidate_rect( m_wxwindow->window, NULL, TRUE );
|
||||
gtk_widget_queue_draw( m_widget );
|
||||
|
||||
if (m_wxwindow && m_wxwindow->window)
|
||||
gdk_window_invalidate_rect( m_wxwindow->window, NULL, TRUE );
|
||||
}
|
||||
|
||||
bool wxTopLevelWindowGTK::Show( bool show )
|
||||
|
Loading…
Reference in New Issue
Block a user