Merge lp:~alexlauni/unity/f10-bug-27548 into lp:unity

Proposed by Alex Launi
Status: Merged
Merged at revision: 1074
Proposed branch: lp:~alexlauni/unity/f10-bug-27548
Merge into: lp:unity
Diff against target: 31 lines (+6/-1)
1 file modified
src/PanelView.cpp (+6/-1)
To merge this branch: bzr merge lp:~alexlauni/unity/f10-bug-27548
Reviewer Review Type Date Requested Status
Jason Smith (community) Approve
Review via email: mp+56260@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jason Smith (jassmith) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/PanelView.cpp'
2--- src/PanelView.cpp 2011-03-31 17:04:36 +0000
3+++ src/PanelView.cpp 2011-04-04 20:52:26 +0000
4@@ -35,6 +35,7 @@
5 #include "PanelStyle.h"
6
7 #include "IndicatorObjectFactoryRemote.h"
8+#include "IndicatorObjectEntryProxy.h"
9 #include "PanelIndicatorObjectView.h"
10
11 NUX_IMPLEMENT_OBJECT_TYPE (PanelView);
12@@ -389,7 +390,7 @@
13 PanelIndicatorObjectView *view = static_cast<PanelIndicatorObjectView *> (*it);
14
15 if (view->_layout == NULL
16- || (view == _menu_view && _menu_view->HasOurWindowFocused ()))
17+ || (view == _menu_view && _menu_view->HasOurWindowFocused ()))
18 continue;
19
20 std::list<Area *>::iterator it2;
21@@ -398,6 +399,10 @@
22 for (it2 = its_children.begin(); it2 != its_children.end(); it2++)
23 {
24 PanelIndicatorObjectEntryView *entry = static_cast<PanelIndicatorObjectEntryView *> (*it2);
25+ IndicatorObjectEntryProxy *proxy = entry->_proxy;
26+
27+ if (proxy != NULL && !proxy->label_sensitive && !proxy->icon_sensitive)
28+ continue;
29
30 entry->Activate ();
31 return;