]> git.saurik.com Git - wxWidgets.git/commitdiff
Set wxDataViewCtrl::m_focusWidget in wxGTK.
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 15 Oct 2011 14:19:22 +0000 (14:19 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 15 Oct 2011 14:19:22 +0000 (14:19 +0000)
The GtkTreeView control that should get the focus in in scrolled window;
the same is already done for wxListBox.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dataview.cpp

index fcbe97e09e637c587a77449e2138db58c8cd2ce8..12fc302973e74773fedf436faa147a03b58e6504 100644 (file)
@@ -4613,6 +4613,8 @@ bool wxDataViewCtrl::Create(wxWindow *parent,
     m_treeview = gtk_tree_view_new();
     gtk_container_add (GTK_CONTAINER (m_widget), m_treeview);
 
+    m_focusWidget = GTK_WIDGET(m_treeview);
+
     g_signal_connect (m_treeview, "size_allocate",
                      G_CALLBACK (gtk_dataviewctrl_size_callback), this);