]> git.saurik.com Git - wxWidgets.git/commitdiff
Tried to make wxListBox::Update() work
authorRobert Roebling <robert@roebling.de>
Wed, 2 Jul 2008 08:15:28 +0000 (08:15 +0000)
committerRobert Roebling <robert@roebling.de>
Wed, 2 Jul 2008 08:15:28 +0000 (08:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gtk/listbox.h
src/gtk/listbox.cpp

index ed32f28246a5e9049077811b0861a4eb98d492a2..92b6f1b8c63e3ba78c40306f396d18f15792f8fb 100644 (file)
@@ -75,6 +75,8 @@ public:
 
     virtual void EnsureVisible(int n);
 
+    virtual void Update();
+
     static wxVisualAttributes
     GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
 
index 5f504233bd644bf81d09132aa7142079efd097d2..9f07a408c2afbe2b2e35e35d358a1687b60ab3ea 100644 (file)
@@ -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
 // ----------------------------------------------------------------------------