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 731018 - 3.13.2: two "changed" signals for the first time an item is selected in treeview
3.13.2: two "changed" signals for the first time an item is selected in treeview
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
3.13.x
Other Linux
: Normal normal
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks:
 
 
Reported: 2014-05-30 23:46 UTC by Sebastian Keller
Modified: 2014-06-11 15:59 UTC
See Also:
GNOME target: 3.14
GNOME version: ---


Attachments
small demo program (962 bytes, text/x-python)
2014-05-30 23:46 UTC, Sebastian Keller
Details

Description Sebastian Keller 2014-05-30 23:46:33 UTC
Created attachment 277591 [details]
small demo program

As can be seen in the demo program, the first time an item is selected from a treeview two "changed" signals are emitted. The first one pointing to the first item in the treeview, the second one pointing to the item actually selected. This can only be observed if the first selected item is not the first item in the list.

I've bisected this down to 185da29b689370d00914ca6c7c5a7bf99fbb702f
Comment 1 Matthias Clasen 2014-05-31 04:01:11 UTC
Fallout from the gestures merge
Comment 2 Carlos Garnacho 2014-06-11 15:59:22 UTC
Thanks for the bug report! This bug has been fixed by commit 89f38b5f

Author: Carlos Garnacho <carlosg@gnome.org>
Date:   Wed Jun 11 16:29:52 2014 +0200

    treeview: Move all button press/release management to the multipress gesture

    The multipress gesture on the bin window now also does all the business related
    to row selection. As row selection and activation can't be easily decoupled, this
    fixes certain problems around ::row-activated being emitted on NULL paths.