+ GtkDisableSelectionEvents();
+
+ if (from > to)
+ {
+ unsigned int tmp = from;
+ from = to;
+ to = tmp;
+ }
+
+ GtkTreeSelection *selection = gtk_tree_view_get_selection( GTK_TREE_VIEW(m_treeview) );
+
+ GtkTreePath *path_from = gtk_tree_path_new ();
+ gtk_tree_path_append_index( path_from, from );
+ GtkTreePath *path_to = gtk_tree_path_new ();
+ gtk_tree_path_append_index( path_to, to );
+
+ gtk_tree_selection_select_range( selection, path_from, path_to );
+
+ gtk_tree_path_free( path_to );
+ gtk_tree_path_free( path_from );
+
+ GtkEnableSelectionEvents();