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:
@@ -4613,6 +4613,8 @@ bool wxDataViewCtrl::Create(wxWindow *parent,
|
|||||||
m_treeview = gtk_tree_view_new();
|
m_treeview = gtk_tree_view_new();
|
||||||
gtk_container_add (GTK_CONTAINER (m_widget), m_treeview);
|
gtk_container_add (GTK_CONTAINER (m_widget), m_treeview);
|
||||||
|
|
||||||
|
m_focusWidget = GTK_WIDGET(m_treeview);
|
||||||
|
|
||||||
g_signal_connect (m_treeview, "size_allocate",
|
g_signal_connect (m_treeview, "size_allocate",
|
||||||
G_CALLBACK (gtk_dataviewctrl_size_callback), this);
|
G_CALLBACK (gtk_dataviewctrl_size_callback), this);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user