From dcd3c79cfa6d0d2930ee638be2d0092aae6be398 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Wed, 1 Mar 2006 22:17:16 +0000 Subject: [PATCH] Corrected scrolling when using cursor keys. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/listbox.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/gtk/listbox.cpp b/src/gtk/listbox.cpp index 1452eae4ac..85a5d1a187 100644 --- a/src/gtk/listbox.cpp +++ b/src/gtk/listbox.cpp @@ -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