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
1=== modified file 'plugins/unityshell/src/LauncherController.cpp'
2--- plugins/unityshell/src/LauncherController.cpp 2012-04-19 22:46:07 +0000
3+++ plugins/unityshell/src/LauncherController.cpp 2012-04-20 14:02:35 +0000
4@@ -381,6 +381,7 @@
5 launcher->display = display_;
6 launcher->monitor = monitor;
7 launcher->options = parent_->options();
8+ launcher->SetModel(model_.get());
9
10 nux::HLayout* layout = new nux::HLayout(NUX_TRACKER_LOCATION);
11 layout->AddView(launcher, 1);
12@@ -395,7 +396,6 @@
13 launcher_window->InputWindowEnableStruts(false);
14 launcher_window->SetEnterFocusInputArea(launcher);
15
16- launcher->SetModel(model_.get());
17 launcher->launcher_addrequest.connect(sigc::mem_fun(this, &Impl::OnLauncherAddRequest));
18 launcher->launcher_addrequest_special.connect(sigc::mem_fun(this, &Impl::OnLauncherAddRequestSpecial));
19 launcher->launcher_removerequest.connect(sigc::mem_fun(this, &Impl::OnLauncherRemoveRequest));
20
21=== modified file 'plugins/unityshell/src/unity-launcher-accessible.cpp'
22--- plugins/unityshell/src/unity-launcher-accessible.cpp 2012-03-14 06:24:18 +0000
23+++ plugins/unityshell/src/unity-launcher-accessible.cpp 2012-04-20 14:02:35 +0000
24@@ -63,7 +63,7 @@
25 gint i);
26
27 /* private */
28-static void on_selection_change_cb(UnityLauncherAccessible* launcher_accessible);
29+static void on_selection_change_cb(AbstractLauncherIcon::Ptr selection, UnityLauncherAccessible* launcher_accessible);
30 static void on_icon_added_cb(AbstractLauncherIcon::Ptr icon, UnityLauncherAccessible* self);
31 static void on_icon_removed_cb(AbstractLauncherIcon::Ptr icon, UnityLauncherAccessible* self);
32 static void on_order_change_cb(UnityLauncherAccessible* self);
33@@ -158,13 +158,13 @@
34
35 launcher = dynamic_cast<Launcher*>(nux_object);
36
37- self->priv->on_selection_change_connection =
38- launcher->selection_change.connect(sigc::bind(sigc::ptr_fun(on_selection_change_cb), self));
39-
40 model = launcher->GetModel();
41
42 if (model)
43 {
44+ self->priv->on_selection_change_connection =
45+ model->selection_changed.connect(sigc::bind(sigc::ptr_fun(on_selection_change_cb), self));
46+
47 self->priv->on_icon_added_connection =
48 model->icon_added.connect(sigc::bind(sigc::ptr_fun(on_icon_added_cb), self));
49
50@@ -365,7 +365,7 @@
51 }
52
53 /* private */
54-static void on_selection_change_cb(UnityLauncherAccessible* launcher_accessible)
55+static void on_selection_change_cb(AbstractLauncherIcon::Ptr selection, UnityLauncherAccessible* launcher_accessible)
56 {
57 g_signal_emit_by_name(ATK_OBJECT(launcher_accessible), "selection-changed");
58 }
59@@ -386,6 +386,7 @@
60 return;
61
62 icon_accessible = unity_a11y_get_accessible(icon.GetPointer());
63+ atk_object_set_parent(icon_accessible, ATK_OBJECT(self));
64
65 update_children_index(self);
66
67
68=== modified file 'plugins/unityshell/src/unitya11y.cpp'
69--- plugins/unityshell/src/unitya11y.cpp 2012-03-14 06:24:18 +0000
70+++ plugins/unityshell/src/unitya11y.cpp 2012-04-20 14:02:35 +0000
71@@ -218,6 +218,9 @@
72 {
73 g_debug("Unity Oneiric accessibility started, using bridge on %s",
74 bridge_path);
75+
76+ atk_get_root();
77+
78 a11y_initialized = TRUE;
79 }
80