After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 702957 - wrong selection counting in multiple selection treeview
wrong selection counting in multiple selection treeview
Status: RESOLVED INVALID
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
2.24.x
Other Windows
: Normal normal
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks:
 
 
Reported: 2013-06-24 10:52 UTC by wally67
Modified: 2014-08-30 05:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
a test program for multiple selection (24.19 KB, image/png)
2013-06-25 09:03 UTC, wally67
Details

Description wally67 2013-06-24 10:52:51 UTC
in "CURSOR_CHANGED" handler function, when GTK_SELECTION_MULTIPLE property is activated, gtk_tree_selection_count_selected_rows function does not return the right value when selection is made using "ctrl" and/or "alt" modifier

this behaviour happens using any other function to count selected rows

instead, when selected rows counting is made in other context, result is correct

this happens also with linux (same gtk version)
Comment 1 wally67 2013-06-25 09:03:05 UTC
Created attachment 247707 [details]
a test program for multiple selection

in the picture there is a test program where i selected 3 rows using ctrl+left click. in edit box appares the "gtk_tree_selection_count_selected_rows" function result called from "cursor-changed" handler
Comment 2 Matthias Clasen 2014-08-30 05:47:40 UTC
Can't reproduce this problem