Merge lp:~nick-dedekind/unity8/indicator-location into lp:unity8

Proposed by Nick Dedekind
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 258
Merged at revision: 259
Proposed branch: lp:~nick-dedekind/unity8/indicator-location
Merge into: lp:unity8
Diff against target: 32 lines (+8/-2)
2 files modified
Panel/IndicatorsDataModel.qml (+6/-0)
plugins/Unity/Indicators/indicatorsmodel.cpp (+2/-2)
To merge this branch: bzr merge lp:~nick-dedekind/unity8/indicator-location
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Albert Astals Cid (community) Approve
Review via email: mp+182331@code.launchpad.net

Commit message

Added location indicator defaults.

Description of the change

Added location indicator defaults.
Updated indicator default widget/page to use new indicator backend impl.

To post a comment you must log in.
Revision history for this message
Albert Astals Cid (aacid) wrote :

Ok, a bit sad that the backend doesn't provide the title, but oh well

review: Approve
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 Tue, 2013-08-27 at 10:40 +0000, Albert Astals Cid wrote:

> Ok, a bit sad that the backend doesn't provide the title, but oh well

Agreed. For some reason I thought you were using the accessibility
description, but I'm realizing that wouldn't have worked. Let's add a
title so that everything gets translated together.

Also, I didn't realize there was a list of indicators in the code. Is
it possible we could move that just using the files installed? What
other information would we need to add to the indicators?

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Panel/IndicatorsDataModel.qml'
2--- Panel/IndicatorsDataModel.qml 2013-08-21 12:37:51 +0000
3+++ Panel/IndicatorsDataModel.qml 2013-08-27 10:21:03 +0000
4@@ -27,6 +27,12 @@
5 Component.onCompleted: load()
6
7 indicatorData : {
8+ 'indicator-location' : {
9+ 'title': 'Location',
10+ 'description' : '',
11+ 'widgetSource' : ApplicationPaths.shellAppDirectory()+'/Panel/Indicators/DefaultIndicatorWidget2.qml',
12+ 'pageSource' : ApplicationPaths.shellAppDirectory()+'/Panel/Indicators/DefaultIndicatorPage2.qml'
13+ },
14 'indicator-bluetooth' : {
15 'title': 'Bluetooth',
16 'description' : '',
17
18=== modified file 'plugins/Unity/Indicators/indicatorsmodel.cpp'
19--- plugins/Unity/Indicators/indicatorsmodel.cpp 2013-08-09 17:30:51 +0000
20+++ plugins/Unity/Indicators/indicatorsmodel.cpp 2013-08-27 10:21:03 +0000
21@@ -229,9 +229,9 @@
22 case IndicatorsModelRole::Description:
23 return "";
24 case IndicatorsModelRole::WidgetSource:
25- return shellAppDirectory()+"/Panel/Indicators/DefaultIndicatorWidget.qml";
26+ return shellAppDirectory()+"/Panel/Indicators/DefaultIndicatorWidget2.qml";
27 case IndicatorsModelRole::PageSource:
28- return shellAppDirectory()+"/Panel/Indicators/DefaultIndicatorPage.qml";
29+ return shellAppDirectory()+"/Panel/Indicators/DefaultIndicatorPage2.qml";
30 }
31 return QVariant();
32 }

Subscribers

People subscribed via source and target branches