From: Robert Roebling Date: Wed, 2 Jul 2008 08:15:28 +0000 (+0000) Subject: Tried to make wxListBox::Update() work X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/937fc7dbeaed4e62dd6e99cbfadcb6ab7f4ebd7f?ds=inline Tried to make wxListBox::Update() work git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/gtk/listbox.h b/include/wx/gtk/listbox.h index ed32f28246..92b6f1b8c6 100644 --- a/include/wx/gtk/listbox.h +++ b/include/wx/gtk/listbox.h @@ -75,6 +75,8 @@ public: virtual void EnsureVisible(int n); + virtual void Update(); + static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); diff --git a/src/gtk/listbox.cpp b/src/gtk/listbox.cpp index 5f504233bd..9f07a408c2 100644 --- a/src/gtk/listbox.cpp +++ b/src/gtk/listbox.cpp @@ -504,6 +504,15 @@ void wxListBox::GtkEnableEvents() UpdateOldSelections(); } + +void wxListBox::Update() +{ + wxWindow::Update(); + + if (m_treeview) + gdk_window_process_updates(m_wxwindow->window, TRUE); +} + // ---------------------------------------------------------------------------- // adding items // ----------------------------------------------------------------------------