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 672242 - Orca presents an extra panel on places&devices and documents search result buttons
Orca presents an extra panel on places&devices and documents search result bu...
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-03-16 16:24 UTC by Alejandro Piñeiro Iglesias (IRC: infapi00)
Modified: 2012-06-01 14:12 UTC
See Also:
GNOME target: ---
GNOME version: 3.3/3.4


Attachments
Sets role/label_actor on SearchResult.content (1.66 KB, patch)
2012-03-16 16:35 UTC, Alejandro Piñeiro Iglesias (IRC: infapi00)
accepted-commit_now Details | Review

Description Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-03-16 16:24:51 UTC
STEPS TO REPRODUCE

1. Launch Orca
2. Move to Overview (Alt+F1)
3. Start a search with "Connect"
4. Navigate until "Connect to ..." under PLACES&DEVICES

EXPECTED OUTCOME

On "Network connections" Orca presents "Network connections PUSH BUTTON"
On "Connect to ..." Orca presents "Connect to ... PUSH BUTTON"

ACTUAL OUTCOME

"Network connections" works fine
With "Connect to ..." Orca present "Connect to ... PUSH BUTTON Panel"
Comment 1 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-03-16 16:35:52 UTC
Created attachment 209941 [details] [review]
Sets role/label_actor on SearchResult.content

Looking at searchDisplay.SearchResult, the last object that will receive the focus is not SearchResult.actor but SearchResult.content. And this is the reason it was working with applications and contacts. They both have a custom result actor as provider.createResultActor is not NULL. In both cases, those custom objects they have the proper role and label_actor (in the case of Contacts, added recently on bug 672047).

But if no createResultActor is provided, SearchResult creates a default content, and the label_actor was set to SearchResult.actor instead of SearchResult.content. This patch sets the proper label_actor, and also set the proper role on content, as it will be the last one receiving focus.

With this change Orca presents "Connect to ... PUSH BUTTON" as properly ignores the intermediate focus on SearchResult.actor (as it is not labeled, and there is a subsequent focus-in on a labeled object).
Comment 2 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-03-16 16:44:28 UTC
(In reply to comment #1)

> With this change Orca presents "Connect to ... PUSH BUTTON" as properly ignores
> the intermediate focus on SearchResult.actor (as it is not labeled, and there
> is a subsequent focus-in on a labeled object).

Sorry this doesn't happens, as SearchResult.actor has can_focus to false (anyway, the patch works properly).

This leads me to think probably there is another way to solve this. Setting SearchResult.actor.can_focus to true, and content.can_focus to false, so the object that will receive the focus will be SearchResult.actor. Then you should set the proper SearchResult.actor.label_actor. Something that it is easy when you don't have a custom ResultActor, as you are creating the icon, but complex in any other case, as you would need to get the label from the custom ResultActor.

Something than seems somewhat complex, and that could include some other collateral effects.
Comment 3 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-03-16 16:47:19 UTC
Taking into account that this is a minor issue, that today is Friday and next Monday is Code Freeze, and that we still have pending bug 671378, I will not push this bug to be a GNOME Target 3.4.
Comment 4 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-03-16 16:47:47 UTC
(In reply to comment #3)
> Taking into account that this is a minor issue, that today is Friday and next
> Monday is Code Freeze, and that we still have pending bug 671378, I will not
> push this bug to be a GNOME Target 3.4.

s/push/set
Comment 5 Joanmarie Diggs (IRC: joanie) 2012-03-16 17:28:34 UTC
(In reply to comment #3)
> Taking into account that this is a minor issue, that today is Friday and next
> Monday is Code Freeze, and that we still have pending bug 671378, I will not
> push this bug to be a GNOME Target 3.4.

Understood and no worries. I am really, really grateful for all your work and all of Dan's and Florian's reviews which made it possible to keep getting fixes in. I think GNOME Shell 3.4 + Orca is going to turn out quite well.

In the meantime, the extra panel really is annoying and is easy enough to work around safely in Orca. Therefore, I have done so, clearly marking the workaround. We can remove it once this bug is properly fixed.
http://git.gnome.org/browse/orca/commit/?id=2604e3a2c214e828b453cbec3e5f3ad5050c9846

Thanks again!!!
Comment 6 André Klapper 2012-03-19 08:50:41 UTC
(In reply to comment #3)
> I will not push this bug to be a GNOME Target 3.4.

=> Removing the flag.
Comment 7 Florian Müllner 2012-06-01 10:47:14 UTC
Review of attachment 209941 [details] [review]:

Could use a more detailed commit message, looks good otherwise
Comment 8 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-06-01 14:12:04 UTC
(In reply to comment #7)
> Review of attachment 209941 [details] [review]:
> 
> Could use a more detailed commit message, looks good otherwise

Commit message extended and committed. Closing bug.

Thanks