Merge lp:~mterry/indicator-network/greeter-profiles into lp:indicator-network/14.10

Proposed by Michael Terry
Status: Merged
Approved by: Antti Kaijanmäki
Approved revision: 334
Merged at revision: 337
Proposed branch: lp:~mterry/indicator-network/greeter-profiles
Merge into: lp:indicator-network/14.10
Diff against target: 35 lines (+8/-0)
1 file modified
network/service.h (+8/-0)
To merge this branch: bzr merge lp:~mterry/indicator-network/greeter-profiles
Reviewer Review Type Date Requested Status
Antti Kaijanmäki (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+219897@code.launchpad.net

Commit message

Add back support for phone_greeter and desktop_greeter.

Description of the change

Add back support for phone_greeter and desktop_greeter.

During the c++ rewrite, these two profiles were made empty. Before the rewrite, desktop_greeter didn't actually exist and phone_greeter was just a copy of phone.

So I've added phone_greeter back as a copy of phone. And added desktop_greeter as a copy of desktop.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ted Gould (ted) wrote :

On Fri, 2014-05-16 at 19:42 +0000, Michael Terry wrote:

> So I've added phone_greeter back as a copy of phone. And added
> desktop_greeter as a copy of desktop.

If they're copies it would probably be better to just make the config
file point to the same dbus path rather than duplicate them in the C++
code.

Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

Thanks, Michael!

We can now just add them as "duplicated" in the code, but there will be profile customization coming real soon.

Just make sure that in the greeter code you actually read the proper paths from

/usr/share/unity/indicators/com.canonical.indicator.network

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'network/service.h'
2--- network/service.h 2014-05-12 11:36:59 +0000
3+++ network/service.h 2014-05-16 19:41:50 +0000
4@@ -108,15 +108,21 @@
5
6 m_quickAccessSection = std::make_shared<QuickAccessSection>(m_manager);;
7 m_desktopMenu->addSection(m_quickAccessSection);
8+ m_desktopGreeterMenu->addSection(m_quickAccessSection);
9 m_phoneMenu->addSection(m_quickAccessSection);
10+ m_phoneGreeterMenu->addSection(m_quickAccessSection);
11
12 m_wifiSection = std::make_shared<WifiSection>(m_manager);
13 m_desktopMenu->addSection(m_wifiSection);
14+ m_desktopGreeterMenu->addSection(m_wifiSection);
15 m_phoneMenu->addSection(m_wifiSection);
16+ m_phoneGreeterMenu->addSection(m_wifiSection);
17
18 m_wwanSection = std::make_shared<WwanSection>(m_modemManager);
19 m_desktopMenu->addSection(m_wwanSection);
20+ m_desktopGreeterMenu->addSection(m_wwanSection);
21 m_phoneMenu->addSection(m_wwanSection);
22+ m_phoneGreeterMenu->addSection(m_wwanSection);
23
24 m_desktopMenuExporter.reset(new MenuExporter(m_sessionBus, "/com/canonical/indicator/network/desktop", m_desktopMenu->menu()));
25 m_desktopGreeterMenuExporter.reset(new MenuExporter(m_sessionBus, "/com/canonical/indicator/network/desktop_greeter", m_desktopGreeterMenu->menu()));
26@@ -135,7 +141,9 @@
27 // we have a single actiongroup for all the menus.
28 m_actionGroupMerger.reset(new ActionGroupMerger());
29 m_actionGroupMerger->add(m_desktopMenu->actionGroup());
30+ m_actionGroupMerger->add(m_desktopGreeterMenu->actionGroup());
31 m_actionGroupMerger->add(m_phoneMenu->actionGroup());
32+ m_actionGroupMerger->add(m_phoneGreeterMenu->actionGroup());
33 m_actionGroupExporter.reset(new ActionGroupExporter(m_sessionBus, m_actionGroupMerger->actionGroup(),
34 "/com/canonical/indicator/network",
35 "indicator"));

Subscribers

People subscribed via source and target branches