Corrected scrolling when using cursor keys.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
65616292d0
commit
dcd3c79cfa
@ -565,15 +565,8 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id,
|
||||
}
|
||||
|
||||
|
||||
gtk_scrolled_window_add_with_viewport( GTK_SCROLLED_WINDOW(m_widget),
|
||||
GTK_WIDGET(m_treeview) );
|
||||
|
||||
/* make list scroll when moving the focus down using cursor keys */
|
||||
gtk_container_set_focus_vadjustment(
|
||||
GTK_CONTAINER(m_treeview),
|
||||
gtk_scrolled_window_get_vadjustment(
|
||||
GTK_SCROLLED_WINDOW(m_widget)));
|
||||
|
||||
gtk_container_add (GTK_CONTAINER (m_widget), GTK_WIDGET(m_treeview) );
|
||||
|
||||
gtk_widget_show( GTK_WIDGET(m_treeview) );
|
||||
|
||||
wxListBox::DoInsertItems(wxArrayString(n, choices), 0); // insert initial items
|
||||
|
Loading…
Reference in New Issue
Block a user