]> git.saurik.com Git - wxWidgets.git/commitdiff
Corrected scrolling when using cursor keys.
authorRobert Roebling <robert@roebling.de>
Wed, 1 Mar 2006 22:17:16 +0000 (22:17 +0000)
committerRobert Roebling <robert@roebling.de>
Wed, 1 Mar 2006 22:17:16 +0000 (22:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/listbox.cpp

index 1452eae4acbc4a0f5b5ffde81b247a6bd0932a9d..85a5d1a18780857623969095b7a9696512c99569 100644 (file)
@@ -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