Merge lp:~azzar1/unity/fix-949448 into lp:unity

Proposed by Andrea Azzarone
Status: Merged
Approved by: Andrea Azzarone
Approved revision: no longer in the source branch.
Merged at revision: 2362
Proposed branch: lp:~azzar1/unity/fix-949448
Merge into: lp:unity
Diff against target: 79 lines (+10/-6)
3 files modified
plugins/unityshell/src/LauncherController.cpp (+1/-1)
plugins/unityshell/src/unity-launcher-accessible.cpp (+6/-5)
plugins/unityshell/src/unitya11y.cpp (+3/-0)
To merge this branch: bzr merge lp:~azzar1/unity/fix-949448
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) Approve
Review via email: mp+102860@code.launchpad.net

Commit message

Unmute launcher.

Description of the change

== Problem ==
Launcher is silent to screen reader users.

== Fix ==
Fix a couple of regressions. Alan Bell confirmed the fix for the launcher.

== Test ==
Not sure how we could test it.

To post a comment you must log in.
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

I only get the quicklist working here, not the launcher icons...

I think we need a manual test for this, to track eventual regressions.

review: Approve
Revision history for this message
Andrea Azzarone (azzar1) wrote :

Are you using the key navigation right?

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Yep...

Revision history for this message
Unity Merger (unity-merger) wrote :

No commit message specified.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'plugins/unityshell/src/LauncherController.cpp'
--- plugins/unityshell/src/LauncherController.cpp 2012-04-19 22:46:07 +0000
+++ plugins/unityshell/src/LauncherController.cpp 2012-04-20 14:02:35 +0000
@@ -381,6 +381,7 @@
381 launcher->display = display_;381 launcher->display = display_;
382 launcher->monitor = monitor;382 launcher->monitor = monitor;
383 launcher->options = parent_->options();383 launcher->options = parent_->options();
384 launcher->SetModel(model_.get());
384385
385 nux::HLayout* layout = new nux::HLayout(NUX_TRACKER_LOCATION);386 nux::HLayout* layout = new nux::HLayout(NUX_TRACKER_LOCATION);
386 layout->AddView(launcher, 1);387 layout->AddView(launcher, 1);
@@ -395,7 +396,6 @@
395 launcher_window->InputWindowEnableStruts(false);396 launcher_window->InputWindowEnableStruts(false);
396 launcher_window->SetEnterFocusInputArea(launcher);397 launcher_window->SetEnterFocusInputArea(launcher);
397398
398 launcher->SetModel(model_.get());
399 launcher->launcher_addrequest.connect(sigc::mem_fun(this, &Impl::OnLauncherAddRequest));399 launcher->launcher_addrequest.connect(sigc::mem_fun(this, &Impl::OnLauncherAddRequest));
400 launcher->launcher_addrequest_special.connect(sigc::mem_fun(this, &Impl::OnLauncherAddRequestSpecial));400 launcher->launcher_addrequest_special.connect(sigc::mem_fun(this, &Impl::OnLauncherAddRequestSpecial));
401 launcher->launcher_removerequest.connect(sigc::mem_fun(this, &Impl::OnLauncherRemoveRequest));401 launcher->launcher_removerequest.connect(sigc::mem_fun(this, &Impl::OnLauncherRemoveRequest));
402402
=== modified file 'plugins/unityshell/src/unity-launcher-accessible.cpp'
--- plugins/unityshell/src/unity-launcher-accessible.cpp 2012-03-14 06:24:18 +0000
+++ plugins/unityshell/src/unity-launcher-accessible.cpp 2012-04-20 14:02:35 +0000
@@ -63,7 +63,7 @@
63 gint i);63 gint i);
6464
65/* private */65/* private */
66static void on_selection_change_cb(UnityLauncherAccessible* launcher_accessible);66static void on_selection_change_cb(AbstractLauncherIcon::Ptr selection, UnityLauncherAccessible* launcher_accessible);
67static void on_icon_added_cb(AbstractLauncherIcon::Ptr icon, UnityLauncherAccessible* self);67static void on_icon_added_cb(AbstractLauncherIcon::Ptr icon, UnityLauncherAccessible* self);
68static void on_icon_removed_cb(AbstractLauncherIcon::Ptr icon, UnityLauncherAccessible* self);68static void on_icon_removed_cb(AbstractLauncherIcon::Ptr icon, UnityLauncherAccessible* self);
69static void on_order_change_cb(UnityLauncherAccessible* self);69static void on_order_change_cb(UnityLauncherAccessible* self);
@@ -158,13 +158,13 @@
158158
159 launcher = dynamic_cast<Launcher*>(nux_object);159 launcher = dynamic_cast<Launcher*>(nux_object);
160160
161 self->priv->on_selection_change_connection =
162 launcher->selection_change.connect(sigc::bind(sigc::ptr_fun(on_selection_change_cb), self));
163
164 model = launcher->GetModel();161 model = launcher->GetModel();
165162
166 if (model)163 if (model)
167 {164 {
165 self->priv->on_selection_change_connection =
166 model->selection_changed.connect(sigc::bind(sigc::ptr_fun(on_selection_change_cb), self));
167
168 self->priv->on_icon_added_connection =168 self->priv->on_icon_added_connection =
169 model->icon_added.connect(sigc::bind(sigc::ptr_fun(on_icon_added_cb), self));169 model->icon_added.connect(sigc::bind(sigc::ptr_fun(on_icon_added_cb), self));
170170
@@ -365,7 +365,7 @@
365}365}
366366
367/* private */367/* private */
368static void on_selection_change_cb(UnityLauncherAccessible* launcher_accessible)368static void on_selection_change_cb(AbstractLauncherIcon::Ptr selection, UnityLauncherAccessible* launcher_accessible)
369{369{
370 g_signal_emit_by_name(ATK_OBJECT(launcher_accessible), "selection-changed");370 g_signal_emit_by_name(ATK_OBJECT(launcher_accessible), "selection-changed");
371}371}
@@ -386,6 +386,7 @@
386 return;386 return;
387387
388 icon_accessible = unity_a11y_get_accessible(icon.GetPointer());388 icon_accessible = unity_a11y_get_accessible(icon.GetPointer());
389 atk_object_set_parent(icon_accessible, ATK_OBJECT(self));
389390
390 update_children_index(self);391 update_children_index(self);
391392
392393
=== modified file 'plugins/unityshell/src/unitya11y.cpp'
--- plugins/unityshell/src/unitya11y.cpp 2012-03-14 06:24:18 +0000
+++ plugins/unityshell/src/unitya11y.cpp 2012-04-20 14:02:35 +0000
@@ -218,6 +218,9 @@
218 {218 {
219 g_debug("Unity Oneiric accessibility started, using bridge on %s",219 g_debug("Unity Oneiric accessibility started, using bridge on %s",
220 bridge_path);220 bridge_path);
221
222 atk_get_root();
223
221 a11y_initialized = TRUE;224 a11y_initialized = TRUE;
222 }225 }
223226