Merge lp:~lukas-kde/unity-api/liveCaption into lp:unity-api

Proposed by Lukáš Tinkl on 2015-09-29
Status: Superseded
Proposed branch: lp:~lukas-kde/unity-api/liveCaption
Merge into: lp:unity-api
Prerequisite: lp:~dandrader/unity-api/mousePointer
Diff against target: 40 lines (+4/-2)
2 files modified
include/unity/shell/application/MirSurfaceInterface.h (+2/-1)
include/unity/shell/application/MirSurfaceItemInterface.h (+2/-1)
To merge this branch: bzr merge lp:~lukas-kde/unity-api/liveCaption
Reviewer Review Type Date Requested Status
Michael Zanetti (community) Abstain on 2015-09-30
Gerry Boland Approve on 2015-09-30
Daniel d'Andrada (community) 2015-09-29 Approve on 2015-09-29
PS Jenkins bot continuous-integration 2015-09-29 Approve on 2015-09-29
Review via email: mp+272769@code.launchpad.net

This proposal supersedes a proposal from 2015-09-29.

This proposal has been superseded by a proposal from 2015-10-01.

Commit Message

Notify about surface name changes

Description of the Change

Notify about surface name changes, bump api version

Cf: https://bugs.launchpad.net/ubuntu/+source/unity-api/+bug/1497092

* Are there any related MPs required for this MP to build/function as expected? Please list.

Yes: https://code.launchpad.net/~dandrader/unity-api/mousePointer/+merge/271620

* Did you perform an exploratory manual test run of your code change and any related functionality?

Yes

* Did you make sure that your branch does not contain spurious tags?

Yes

* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?

Yes

* If you changed the UI, has there been a design review?

N/A

To post a comment you must log in.
review: Approve
Gerry Boland (gerboland) wrote :

Do you think "name" is the best name for this property? I chose "name" as it matches the Mir terminology. I've always had a hunch "title" is a better name. Thoughts?

review: Needs Information
Lukáš Tinkl (lukas-kde) wrote :

> Do you think "name" is the best name for this property? I chose "name" as it
> matches the Mir terminology. I've always had a hunch "title" is a better name.
> Thoughts?

I don't know honestly but I kept "name" for this very reason, to match the Mir's terminology.

Michael Zanetti (mzanetti) wrote :

Since you're asking for opinions, I agree, title is better... Name really makes me think of the "Name=" entry in the .desktop file.

Gerry Boland (gerboland) wrote :

Thinking it over, IMO it's probably better to stick with mir terminology. It's annoying if a wrapper lib decides to rename the things it is wrapping

Daniel d'Andrada (dandrader) wrote :

On 30/09/2015 09:44, Gerry Boland wrote:
> Thinking it over, IMO it's probably better to stick with mir terminology. It's annoying if a wrapper lib decides to rename the things it is wrapping
+1

Gerry Boland (gerboland) :
review: Approve
Michael Zanetti (mzanetti) wrote :

this should bump the application-api version

review: Needs Fixing
Michael Zanetti (mzanetti) wrote :

> this should bump the application-api version

ok... as it is confirmed we'll land this together with another change that bumps the version, I'm fine with not bumping it again here...

review: Abstain

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'include/unity/shell/application/MirSurfaceInterface.h'
2--- include/unity/shell/application/MirSurfaceInterface.h 2015-08-19 13:18:09 +0000
3+++ include/unity/shell/application/MirSurfaceInterface.h 2015-09-29 14:29:43 +0000
4@@ -47,7 +47,7 @@
5 /**
6 * @brief Name of the surface, given by the client application
7 */
8- Q_PROPERTY(QString name READ name CONSTANT)
9+ Q_PROPERTY(QString name READ name NOTIFY nameChanged)
10
11 /**
12 * @brief Size of the current surface buffer, in pixels.
13@@ -102,6 +102,7 @@
14 void stateChanged(Mir::State value);
15 void orientationAngleChanged(Mir::OrientationAngle value);
16 void sizeChanged(const QSize &value);
17+ void nameChanged(const QString &name);
18 /// @endcond
19 };
20
21
22=== modified file 'include/unity/shell/application/MirSurfaceItemInterface.h'
23--- include/unity/shell/application/MirSurfaceItemInterface.h 2015-08-19 13:18:09 +0000
24+++ include/unity/shell/application/MirSurfaceItemInterface.h 2015-09-29 14:29:43 +0000
25@@ -59,7 +59,7 @@
26 /**
27 * @brief Name of the given surface or an empty string if no surface is set
28 */
29- Q_PROPERTY(QString name READ name CONSTANT)
30+ Q_PROPERTY(QString name READ name NOTIFY nameChanged)
31
32 /**
33 * @brief True if the item has a surface and that surface has a mir client bound to it.
34@@ -141,6 +141,7 @@
35 void consumesInputChanged(bool value);
36 void surfaceWidthChanged(int value);
37 void surfaceHeightChanged(int value);
38+ void nameChanged(const QString &name);
39 /// @endcond
40 };
41

Subscribers

People subscribed via source and target branches

to all changes: