| 116 | } |
| 117 | |
| 118 | static hb_preset_index_t* |
| 119 | tree_get_index(GtkTreeModel *store, GtkTreeIter *iter) |
| 120 | { |
| 121 | GtkTreePath *treepath; |
| 122 | int *indices, len; |
| 123 | hb_preset_index_t *path; |
| 124 | |
| 125 | treepath = gtk_tree_model_get_path(store, iter); |
| 126 | indices = gtk_tree_path_get_indices(treepath); |
| 127 | len = gtk_tree_path_get_depth(treepath); |
| 128 | path = hb_preset_index_init(indices, len); |
| 129 | gtk_tree_path_free(treepath); |
| 130 | |
| 131 | return path; |
| 132 | } |
| 133 | |
| 134 | static hb_preset_index_t* |
| 135 | tree_path_get_index(GtkTreePath *treepath) |
no test coverage detected