]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed [ 1556843 ] wxGTK FindFocus returns NULL when a wxListBox is focused
authorRobert Roebling <robert@roebling.de>
Wed, 20 Sep 2006 08:08:53 +0000 (08:08 +0000)
committerRobert Roebling <robert@roebling.de>
Wed, 20 Sep 2006 08:08:53 +0000 (08:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/listbox.cpp

index 75a80a78a713b618835afaad13c6dff21d7449e8..f38d62d070eb0dc46b002f3891ffbbd972c85929 100644 (file)
@@ -556,6 +556,7 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id,
     gtk_container_add (GTK_CONTAINER (m_widget), GTK_WIDGET(m_treeview) );
 
     gtk_widget_show( GTK_WIDGET(m_treeview) );
+    m_focusWidget = GTK_WIDGET(m_treeview);
 
     wxListBox::DoInsertItems(wxArrayString(n, choices), 0); // insert initial items