pub fn count_number_of_groups(tree_view: &TreeView, column_header: i32) -> u32 {
    let mut number_of_selected_groups = 0;

    let model = get_list_store(tree_view);

    if let Some(iter) = model.iter_first() {
        assert!(model.get::<bool>(&iter, column_header)); // First element should be header
        number_of_selected_groups += 1;

        loop {
            if !model.iter_next(&iter) {
                break;
            }

            if model.get::<bool>(&iter, column_header) {
                number_of_selected_groups += 1;
            }
        }
    }
    number_of_selected_groups
}
/// Counts how much headers/groups is in treeview
Counts how much headers/groups is in treeview
Counts how much headers / groups is in treeview
pub fn count_number_of_groups(tree_view: &TreeView, column_header: i32) -> u32 {
    let mut number_of_selected_groups = 0;
    let model = get_list_store(tree_view);
    if let Some(iter) = model.iter_first() {
        assert!(model.get::<bool>(&iter, column_header)); // First element should be header
        number_of_selected_groups += 1;
        loop {
            if !model.iter_next(&iter) {
                break;
            }
            if model.get::<bool>(&iter, column_header) {
                number_of_selected_groups += 1;
            }
        }
    }
    number_of_selected_groups
}
pub fn count_number_of_groups ( tree_view : & TreeView , column_header : i32 ) -> u32 { let mut number_of_selected_groups = 0 ; let model = get_list_store ( tree_view ) ; if let Some ( iter ) = model . iter_first ( ) { assert ! ( model get bool ( iter column_header ) ) ; // First element should be header number_of_selected_groups += 1 ; loop { if ! model . iter_next ( & iter ) { break ; } if model . get :: < bool > ( & iter , column_header ) { number_of_selected_groups += 1 ; } } } number_of_selected_groups }
Counts how much headers/groups is in treeview
Counts how much headers / groups is in treeview
tree_view
&TreeView
column_header
i32
tree_view
&TreeView
column_header
i32