X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9c9c3d7a8f6c4ee3481674e901d34714ee18915d..a647d42abcf7461dbd3abb88df3262e4bb495f73:/src/gtk1/listbox.cpp?ds=sidebyside diff --git a/src/gtk1/listbox.cpp b/src/gtk1/listbox.cpp index e3edea4f3d..4f166e489e 100644 --- a/src/gtk1/listbox.cpp +++ b/src/gtk1/listbox.cpp @@ -657,7 +657,7 @@ void wxListBox::Delete( int n ) } if ( m_strings ) - m_strings->Remove(n); + m_strings->RemoveAt(n); } // ---------------------------------------------------------------------------- @@ -958,6 +958,8 @@ GtkWidget *wxListBox::GetConnectWidget() bool wxListBox::IsOwnGtkWindow( GdkWindow *window ) { + if (m_widget->window == window) return TRUE; + if (GTK_WIDGET(m_list)->window == window) return TRUE; GList *child = m_list->children; @@ -1037,7 +1039,8 @@ void wxListBox::OnInternalIdle() } } - UpdateWindowUI(); + if (wxUpdateUIEvent::CanUpdate()) + UpdateWindowUI(); } wxSize wxListBox::DoGetBestSize() const