Set wxDataViewCtrl::m_focusWidget in wxGTK.

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
This commit is contained in:
Václav Slavík
2011-10-15 14:19:22 +00:00
parent d81ccfce37
commit fc55eaa0be

View 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);