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 94837 - Spurious signal emitted when TreeView is clicked with nothing previously selected
Spurious signal emitted when TreeView is clicked with nothing previously sele...
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
2.0.x
Other Solaris
: Normal normal
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
: 82344 96063 118577 119364 (view as bug list)
Depends on: 80590
Blocks:
 
 
Reported: 2002-10-04 09:01 UTC by padraig.obriain
Modified: 2011-02-04 16:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description padraig.obriain 2002-10-04 09:01:17 UTC
If I click on a row in a GtkTreeView which has nothing selected a changed
signal is emitted by the GtkTreeSelection for the first row and then
subsequently for the row which is selected.
Comment 1 Kristian Rietveld 2002-10-04 18:17:08 UTC
This is not really spurious. If the treeview gets focus, and no item
has been selected, it will select the first item by default (only if
the selection mode != GTK_SELECTION_NONE).

IMHO this behaviour is questionnable, but I'm sure Jonathan has a
rationale for this (or forgot it :).

So we have two options. Change the current behaviour (which may break
apps), or wait for the mode API and add a special mode.

I'll let Jonathan decide.
Comment 2 Kristian Rietveld 2002-10-17 15:23:00 UTC
*** Bug 96063 has been marked as a duplicate of this bug. ***
Comment 3 Kristian Rietveld 2002-10-19 16:52:11 UTC
*** Bug 82344 has been marked as a duplicate of this bug. ***
Comment 4 Kristian Rietveld 2002-11-11 22:37:48 UTC
Setting on 2.2 API freeze. Chaging behaviour is changing API.
Comment 5 Kristian Rietveld 2002-11-26 22:01:33 UTC
Jonathan wants to use the mode API here. Punting to 2.4.
Comment 6 Kristian Rietveld 2003-08-14 19:50:02 UTC
*** Bug 118577 has been marked as a duplicate of this bug. ***
Comment 7 Kristian Rietveld 2003-08-14 19:57:15 UTC
*** Bug 119364 has been marked as a duplicate of this bug. ***
Comment 8 Federico Mena Quintero 2004-01-14 22:07:58 UTC
For reference, this bug is caused by the fix to bug #113086.  We don't
need a modes API; we just need to move the grab_focus() call after the
code which selects the pressed row.
Comment 9 Jonathan Blandford 2004-01-15 00:14:09 UTC
Thanks for reporting,
Fixed.