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 117568 - unable to select items in trees (and table rows)
unable to select items in trees (and table rows)
Status: RESOLVED FIXED
Product: gok
Classification: Deprecated
Component: general
unspecified
Other Solaris
: High major
: ---
Assigned To: bill.haneman
bill.haneman
: 137220 (view as bug list)
Depends on: 133413
Blocks: 117582 129450 136065
 
 
Reported: 2003-07-16 10:56 UTC by david.hawthorne
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4


Attachments
patch to provide back-compatible wrappers for table selection ops (8.48 KB, patch)
2004-03-09 22:21 UTC, bill.haneman
none Details | Review
patch as applied to cvs (8.62 KB, patch)
2004-03-30 16:54 UTC, bill.haneman
none Details | Review
attachment to provide UI Grab selection of table rows (4.98 KB, patch)
2004-03-31 14:37 UTC, bill.haneman
none Details | Review
improved patch which works well with file selectors and more complex tables (364.59 KB, patch)
2004-03-31 20:28 UTC, bill.haneman
none Details | Review
patch which also limits the table's keyboard to visible rows (365.54 KB, patch)
2004-03-31 20:40 UTC, bill.haneman
none Details | Review
patch with ChangeLog, excluding extraneous changes to po files, etc. (16.27 KB, patch)
2004-03-31 20:49 UTC, bill.haneman
none Details | Review
patch as applied (17.79 KB, patch)
2004-04-01 12:29 UTC, bill.haneman
none Details | Review

Description david.hawthorne 2003-07-16 10:56:07 UTC
Using gnome-2.4 nightly build from 14 July 2003.

. logged in as normal user from failsafe session

- run gok
- go to a GTK tree selection(theme prefs or mouse prefs)
- select UI GRab
. there is no button on GOK keyboard to access the tree options, only the
available button widgets are selectable.
Comment 1 David Bolter 2003-07-16 14:14:02 UTC
David, thanks again.  This is a known issue. The UI grab feature is
not exhaustive. It is, however an ultimate goal and so I will open an
uber-bug for adding UI grabbage. I am not sure this is priority for
2.3 as the user can still branch to the compose keyboard and use
"regular" keyboard access to control the GUI.
Comment 2 Calum Benson 2003-08-07 16:08:41 UTC
Apologies for spam... marking as GNOMEVER2.3 so it appears on the official GNOME
bug list :)
Comment 3 bill.haneman 2004-01-27 16:14:27 UTC
marking prio and severity 'normal' since we want to expose as much UI
via UI-Grab as is feasible.
Comment 4 bill.haneman 2004-01-27 17:07:07 UTC
theme prefs (at least, the list items in the theme list) now appear in
gok as separate buttons which are user-actionable.

I don't see any trees in the Mouse preferences dialog.
However, the sliders are not actionable via UI Grab.
Comment 5 bill.haneman 2004-01-28 12:44:01 UTC
sliders are a separate issue.  Current tree issue: cells are visible
in UI Grab, but attempting to select or activate them via at-spi
doesn't do anything, thus GOK's UI Grab buttons for them are ineffectual.
Comment 6 bill.haneman 2004-02-04 16:53:09 UTC
Padraig informs me that for tables with > 1 column, the present
implementation AccessibleSelection won't allow you to select children;
you must use AccessibleTable_selectRow instead.  Unfortunately that
API is missing from cspi, it's only available via libspi (ugh!).
Comment 7 bill.haneman 2004-03-09 22:21:11 UTC
Created attachment 25412 [details] [review]
patch to provide back-compatible wrappers for table selection ops
Comment 8 bill.haneman 2004-03-09 22:23:02 UTC
the above patch would give us access to the API we need in order to
implement usable selection of lists.  To actually make this work for
existing GNOME desktop treeviews will require an additional patch to
the gok-keyboard/gok-spy code.  I suggest that when we get such a
patch working we add the PATCH keyword.
Comment 9 bill.haneman 2004-03-15 11:28:44 UTC
*** Bug 137220 has been marked as a duplicate of this bug. ***
Comment 10 bill.haneman 2004-03-25 12:58:03 UTC
I think the above patch would be acceptable into the 2.6.X stream as it does not
expose any new API and prevents a dependency on a post-gnome-2.6 version of
AT-SPI.  David?
Comment 11 bill.haneman 2004-03-30 16:54:36 UTC
Created attachment 26119 [details] [review]
patch as applied to cvs
Comment 12 bill.haneman 2004-03-30 16:55:53 UTC
I talked to David on IRC today and he thought this patch was acceptable for HEAD.
Comment 13 bill.haneman 2004-03-30 17:48:09 UTC
marking severity 'major' due to anecdotal reports of dups - this seems to impact
a number of our accessibility tests.
Comment 14 bill.haneman 2004-03-31 14:37:30 UTC
Created attachment 26163 [details] [review]
attachment to provide UI Grab selection of table rows

this patch also supercedes the previous patch - it uses a more elegant
alternative to wrapping the methods in gok/gok-table-ops.[ch].
Comment 15 David Bolter 2004-03-31 19:40:58 UTC
Bill, patch looks good.  Do you think we'll see an "unable to select table
columns" in the near future ;-)
Comment 16 bill.haneman 2004-03-31 20:28:24 UTC
Created attachment 26179 [details] [review]
improved patch which works well with file selectors and more complex tables

nearly-complete version of the patch, which works well with the
fileselector/filechooser as well as simpler tables.  Only thing it's missing at
the moment, I think, is logic to make sure it doesn't expose table rows that
are scrolled out of the current view (working on that now).
Comment 17 bill.haneman 2004-03-31 20:40:16 UTC
Created attachment 26180 [details] [review]
patch which also limits the table's keyboard to visible rows

this version of the patch is a candidate for committal once the ChangeLog is
written.
Comment 18 bill.haneman 2004-03-31 20:49:36 UTC
Created attachment 26183 [details] [review]
patch with ChangeLog, excluding extraneous changes to po files, etc.

this version of the patch should be committable as-is.
Comment 19 bill.haneman 2004-03-31 20:52:33 UTC
David: we have two working versions of this patch now - the one from 15:28,
which is for simple tables only (i.e. theme selector), and from 15:49 which is
considerably more complex, but which provides good support for the GNOME/gtk+
2.6/2.4 fileselector.  Question is whether the risk/complexity of the larger
patch is outweighed by the value of good file selector support.  I am leaning
towards "yes" since the fileselector is so important to GNOME 2.6, but am
waiting for your input.
Comment 20 David Bolter 2004-03-31 21:14:20 UTC
I too lean towards "yes".  I am a bit concerned about:
+	if (!retval) 
+	    gok_log ("SELECTACTION failed");
+
+	return retval;

Since I wonder if the gok_log becomes a noop, I don't know what the compiler
will do with this.  Hopefully a value is always returned.

I've skimmed the code, but it would be reassuring to know you had valgrinded
your sandbox.  There is lots of string stuff...  makes me nervous ;-)
Comment 21 bill.haneman 2004-04-01 09:15:22 UTC
the gok_log call does get reduced to a noop call.  I can add braces if that
makes you feel better :-)

I'll valgrind before committing, seems like a good idea in any case. 
Comment 22 bill.haneman 2004-04-01 12:29:43 UTC
Created attachment 26207 [details] [review]
patch as applied
Comment 23 bill.haneman 2004-04-01 12:32:09 UTC
fixed in cvs