]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/listbox.cpp
Put gridg.h back so that it gets installed
[wxWidgets.git] / src / gtk1 / listbox.cpp
index 0336ffec910bd05b1335c7123777ec827f2b5638..b4652068770b5345fb3f6dce4d1a1162bd505e23 100644 (file)
@@ -291,6 +291,12 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id,
     gtk_container_add( GTK_CONTAINER(m_widget), GTK_WIDGET(m_list) );
 #endif
 
+    /* make list scroll when moving the focus down using cursor keys */
+    gtk_container_set_focus_vadjustment(
+        GTK_CONTAINER(m_list),
+        gtk_scrolled_window_get_vadjustment(
+           GTK_SCROLLED_WINDOW(m_widget)));
+
     gtk_widget_show( GTK_WIDGET(m_list) );
 
     wxSize newSize = size;