|
good morning to everybody
i already asked about another argument in this forum (and Paul Childs is helping me) but i have also another problem
in gtk2 i use gtktreeview (with gtkliststore as object) with multiple selection. i implemented "changed" signal to find which rows are selected. when i use a simple 'click' on list i can find the right numbers of rows selected (1)
but if i use also shift and control keys to select more rows i find a wrong number of selections. to find how many rows i selected i use "gtk_tree_selection_count_selected_rows" and "gtk_tree_selection_get_selected_rows" and what happens is the following:
at 1st simple selection i find 1 row selected (ok) changing selection (simple selection) i find 1 row selected (ok) using shift key and selecting (for example) 5 rows i obtain 1 row selected (ko) then i use ctrl key to remove 1 selection and i obtain 5 rows selected (ko, as previous state) using ctrl again so select a new line i obtain 4 row selected (ko, as previous state)
in conclusion, using shift or ctrl key modificators, rows counting functions are "late" en respect the real situation
did you verify a similar behaviour? is it a problem solved with gtk3?
thanks in advance wally
p.s. xmas is next to us, so i wish you a merry xmas
|