From: Václav Slavík Date: Sat, 15 Oct 2011 14:19:22 +0000 (+0000) Subject: Set wxDataViewCtrl::m_focusWidget in wxGTK. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fc55eaa0be28743fdfc5b570451078d87cc76229?ds=inline 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 --- diff --git a/src/gtk/dataview.cpp b/src/gtk/dataview.cpp index fcbe97e09e..12fc302973 100644 --- a/src/gtk/dataview.cpp +++ b/src/gtk/dataview.cpp @@ -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);