From fc55eaa0be28743fdfc5b570451078d87cc76229 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 15 Oct 2011 14:19:22 +0000 Subject: [PATCH] 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 --- src/gtk/dataview.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.45.2