Problem with multiple selection in TreeView
- From: Salvatore De Paolis <iwkse claws-mail org>
- To: gtk-app-devel-list gnome org
- Subject: Problem with multiple selection in TreeView
- Date: Sun, 22 Aug 2010 08:08:58 +0200
Hi,
I'm using GTK+ 2.20.1 and I notice a wrong behavior on the multiple selection.
I've connected a callback to the signal "cursor-changed" and within of if I
get the selection in this way:
sel = gtk_tree_view_get_selection(list_view);
model = gtk_tree_view_get_model(list_view);
rows = gtk_tree_selection_get_selected_rows(sel, &model);
list_view is a GtkListStore data structure.
So when I selected with keyboard I can see here a multiple selection but
when using the mouse and holding <shift> it never happens and just give
a one-row selection.
I also noticed that when I click two times it works as expected,
like click to select the first row, press <shift>, click to select the fourth row, click again on the fourth
row.
It has the shape of the bug to me but I hope I'm missing something :)
Regards,
--
Salvatore
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]