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 413109 - HIG violations
HIG violations
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
2.17.x
Other Linux
: Normal minor
: ---
Assigned To: Orca Maintainers
Orca Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-02-28 16:26 UTC by Nickolay V. Shmyrev
Modified: 2007-04-03 20:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Updated glade file for setup window (126.74 KB, application/x-glade)
2007-03-06 14:30 UTC, Calum Benson
  Details
Updated glade file for quit alert (5.01 KB, application/x-glade)
2007-03-06 14:32 UTC, Calum Benson
  Details
Updated glade file for find dialog (16.21 KB, application/x-glade)
2007-03-06 14:33 UTC, Calum Benson
  Details
New version of the setup glade file reinstating numerous missing labelled-by and label-for relationships. (128.21 KB, text/plain)
2007-03-29 18:23 UTC, Rich Burridge
  Details
debug.out requested by Rich (35.11 KB, text/plain)
2007-03-29 21:45 UTC, Joanmarie Diggs (IRC: joanie)
  Details
Another full debug.out for quitting Orca (68.99 KB, text/plain)
2007-03-29 22:32 UTC, Rich Burridge
  Details
debug.out when nothing was running other than Orca (29.22 KB, text/plain)
2007-03-30 17:25 UTC, Joanmarie Diggs (IRC: joanie)
  Details
patch to add combo box and slider mnemonics (2.92 KB, patch)
2007-04-03 01:11 UTC, Joanmarie Diggs (IRC: joanie)
committed Details | Review

Description Nickolay V. Shmyrev 2007-02-28 16:26:04 UTC
1. Spacing in properties dialog is not correct
2. Exit confirmation dialog has separator
Comment 1 Willie Walker 2007-02-28 20:31:36 UTC
Thanks for bringing this to our attention.  Please point to the relevant HIG docs to tell us what to do correctly.  Thanks!
Comment 2 Willie Walker 2007-02-28 20:58:29 UTC
(In reply to comment #1)
> Thanks for bringing this to our attention.  Please point to the relevant HIG
> docs to tell us what to do correctly.  Thanks!

Eeks!  I didn't mean to sound snarky on this.  I really want to know the right thing to do and I really do appreciate this being brought to our attention.


Comment 3 Rich Burridge 2007-02-28 21:06:23 UTC
Adding Calum, our HCI expert, to the CC.
Comment 4 Calum Benson 2007-03-01 15:33:42 UTC
I'm taking a look at them now.  One quick observation: the Quit dialog probably ought not to be in  a Glade file, you should just call GtkMessageDialog at runtime to get all the right spacing etc.  However, I'll update the Glade file anyway to show you what a HIG-compliant Quit alert should look like :)
Comment 5 Calum Benson 2007-03-06 14:30:34 UTC
Created attachment 84058 [details]
Updated glade file for setup window

Updated setup dialog.  I've tried to tidy up the spacing and resizing behaviour, and ditch as many GtkAlignments as I could find that weren't really needed.  I didn't really have time to tackle the Magnifier tab quite as much as I'd have liked (it's a bit of a monster!), so I might have missed one or two things there.

You'll probably need to check that everything still works, as Glade has a habit of not preserving widget names as well as it should when you start hacking things around.

This dialog probably still needs some more general work really, e.g. you should never really need to use the word "enable" in a checkbox label, but every checkbox on the Key Echo tab does just that :)  And the resize behaviour on the Magnifier tab is a bit odd.
Comment 6 Calum Benson 2007-03-06 14:32:46 UTC
Created attachment 84059 [details]
Updated glade file for quit alert

As noted above, this shouldn't really need to be in a glade file at all, being acheivable with a single gtk call, but it should look something like this.  (Feel free to amend the secondary text as necessary, I didn't know exactly what the consequences of quitting Orca would be...)
Comment 7 Calum Benson 2007-03-06 14:33:38 UTC
Created attachment 84060 [details]
Updated glade file for find dialog

Just a very minor spacing tidy-up here.
Comment 8 Rich Burridge 2007-03-12 18:19:24 UTC
Calum,

I just had a quick look at your new Orca quit Glade file.
I noticed you modified it from a top-level window to a
popup. You also suggest using GtkMessageDialog instead.

I don't think either of these approaches will work because
Orca needs to speak/braille it's own quit dialog, and
adjusting it to be a popup dialog or to use GtkMessageDialog
seems to prevent that.

This seems to need special casing because it's a screen reader.

Would in be okay to leave it as a top-level window in a Glade
file but just adjust to use the other changes you made?

Thanks.

PS: Haven't looked at the other two Glade files yet).
Comment 9 Calum Benson 2007-03-15 17:48:10 UTC
> I just had a quick look at your new Orca quit Glade file.
> I noticed you modified it from a top-level window to a
> popup.

Oops, didn't actually mean to do that, I remember toying with it but I thought I'd set it back.

> I don't think either of these approaches will work because
> Orca needs to speak/braille it's own quit dialog, and
> adjusting it to be a popup dialog or to use GtkMessageDialog
> seems to prevent that.

Hmm, worth filing a bug against GtkMessageDialog perhaps?  (I presume *all* GtkMessageDialogs aren't similarly invisible to Orca?  If so, we've got a lot of broken message dialogs on our desktop that need fixing...)

Anyway, fine by me to do whatever works for now, and rattle any appropriate cages further down the stack if need be.
Comment 10 Rich Burridge 2007-03-29 18:23:35 UTC
Created attachment 85523 [details]
New version of the setup glade file reinstating numerous missing labelled-by and label-for relationships.
Comment 11 Rich Burridge 2007-03-29 18:28:20 UTC
I've committed the three new Glade files. Please try them out and comment back.
Putting the bug into "[pending]" state before closing out as FIXED.

Comment 12 Joanmarie Diggs (IRC: joanie) 2007-03-29 20:03:36 UTC
The only thing I'm noticing is that in the Quit dialog, Orca tends to speak the Cancel button twice when the dialog first appears:

1. Launch Orca
2. Press Insert Q
Comment 13 Rich Burridge 2007-03-29 21:06:49 UTC
Interesting. I'm not seeing (hearing) that at all. Could others
please try it and let me know what they get. Joanie, could you
create a full debug and attach to the bug report please? I gotta
guess it's getting a couple of focus: event or something...
Thanks.
Comment 14 Joanmarie Diggs (IRC: joanie) 2007-03-29 21:45:03 UTC
Created attachment 85538 [details]
debug.out requested by Rich

Here you go!  And, yeah, it looks like I'm getting one object:state-changed:focused event and one focus: event.  Seems like everyone is telling me to focus these days.... ;-)
Comment 15 Rich Burridge 2007-03-29 22:32:48 UTC
Created attachment 85544 [details]
Another full debug.out for quitting Orca

Here's my equivalent. I too get the two kinds of "focus" events:

object:state-changed:focused  -- which speaks the "cancel button"
focus:                        -- which doesn't.

Hmmm. I wonder what the difference is. I'll investigate some more tomorrow.
Comment 16 Rich Burridge 2007-03-30 15:36:24 UTC
I've had a look at the two debug.out files.

With mine, I get an "object:state-changed:focused" event for the
Cancel button on the Orca Quit dialog. This is almost immediately
followed by a "focus:" event for the same. orca_state.locusOfFocus
is already set to the new event.source, so the orca.setLocusOfFocus()
routine just returns without speaking/brailling anything new.

Joanie, with yours, there are several "object:state-changed:focused"
events for gnome-terminal in between the the "object:state-changed:focused"
and the "focus:" events for the Cancel button. When orca.setLocusOfFocus()
is called for the "focus:" event, it would appear that the focus had changed
in the meantime, and so Orca spoke/brailled the Cancel button again.

To confirm this, can you try quitting Orca on a quiescent system and see
what happens? 

Thanks.
Comment 17 Joanmarie Diggs (IRC: joanie) 2007-03-30 17:25:27 UTC
Created attachment 85573 [details]
debug.out when nothing was running other than Orca

Hi Rich.  I quit all applications, launched Orca from the Applications menu, and then quit it.  I still get two "Cancel button"s.
Comment 18 Rich Burridge 2007-03-30 19:25:41 UTC
Joanie added some debug statements I sent her to orca.setLocusOfFocus(),
and got the following:

--

Seems my Cancel button has multiple personality disorder.... (After running your patch, I decided to add name into the mix):

orca.setLocusOfFocus entered.
orca.setLocusOfFocus: obj:  <orca.atspi.Accessible instance at 0xb6041b8c>
orca.setLocusOfFocus: obj role:  push button
orca.setLocusOfFocus: obj name:  Cancel
orca.setLocusOfFocus: orca_state.locusOfFocus:  <orca.atspi.Accessible instance at 0xb60bb80c>
orca.setLocusOfFocus: orca_state.locusOfFocus role:  push button
orca.setLocusOfFocus: orca_state.locusOfFocus name:  Cancel
default: onFocus: calling orca.setLocusOfFocus for newFocus: <orca.atspi.Accessible instance at 0xb60bb98c> 

--

I'm totally baffled why there should be two different instances of the
same Cancel button.

Still looking.
Comment 19 Joanmarie Diggs (IRC: joanie) 2007-04-02 22:26:21 UTC
Perhaps I'm having a senior moment, but didn't the shortcuts for the combo boxes in Orca Preferences -> Speech used to work?
Comment 20 Willie Walker 2007-04-03 00:17:34 UTC
I don't recall the combobox mnemonics ever working.  :-(
Comment 21 Joanmarie Diggs (IRC: joanie) 2007-04-03 01:11:58 UTC
Created attachment 85740 [details] [review]
patch to add combo box and slider mnemonics

I assume the attached is cool from an HIG point of view, but since what I know about HIG could happily line dance with 10,000 of its closest friends on the head of a pin....
Comment 22 Rich Burridge 2007-04-03 15:20:51 UTC
Patch committed. Thanks Joanie.