164 |
int |
int |
165 |
listview_del_items( listview_ctrl_t ctx ) |
listview_del_items( listview_ctrl_t ctx ) |
166 |
{ |
{ |
167 |
int n; |
int i, n; |
168 |
|
|
169 |
/* delete all selected entries */ |
/* delete all selected entries */ |
170 |
for( n = 0; n < listview_count_items( ctx, 0 ); n++ ) { |
n = listview_count_items (ctx, 0); |
171 |
if ( listview_get_item_state( ctx, n ) ) |
for( i = n; i > 0; i-- ) { |
172 |
listview_del_item( ctx, n ); |
if ( listview_get_item_state( ctx, i ) ) |
173 |
|
listview_del_item( ctx, i ); |
174 |
} |
} |
175 |
return 0; |
return 0; |
176 |
} /* listview_del_items */ |
} /* listview_del_items */ |