[ 1816882 ] wxListBox::SetSelection() doesn't update the control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -769,6 +769,13 @@ void wxListBox::GtkSetSelection(int n, const bool select, const bool blockEvent)
|
|||||||
else
|
else
|
||||||
gtk_tree_selection_unselect_iter(selection, &iter);
|
gtk_tree_selection_unselect_iter(selection, &iter);
|
||||||
|
|
||||||
|
GtkTreePath* path = gtk_tree_model_get_path(
|
||||||
|
GTK_TREE_MODEL(m_liststore), &iter);
|
||||||
|
|
||||||
|
gtk_tree_view_scroll_to_cell(m_treeview, path, NULL, FALSE, 0.0f, 0.0f);
|
||||||
|
|
||||||
|
gtk_tree_path_free(path);
|
||||||
|
|
||||||
m_blockEvent = false;
|
m_blockEvent = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user