Merge lp:~jonas-drange/gsettings-ubuntu-touch-schemas/orientation-lock into lp:gsettings-ubuntu-touch-schemas

Proposed by Jonas G. Drange
Status: Merged
Approved by: Sebastien Bacher
Approved revision: 42
Merged at revision: 40
Proposed branch: lp:~jonas-drange/gsettings-ubuntu-touch-schemas/orientation-lock
Merge into: lp:gsettings-ubuntu-touch-schemas
Diff against target: 30 lines (+14/-1)
1 file modified
schemas/com.ubuntu.touch.system.gschema.xml.in.in (+14/-1)
To merge this branch: bzr merge lp:~jonas-drange/gsettings-ubuntu-touch-schemas/orientation-lock
Reviewer Review Type Date Requested Status
Sebastien Bacher (community) Approve
Review via email: mp+230499@code.launchpad.net

Commit message

[system] swap boolean rotation-lock for enumerated type orientation-lock

Description of the change

[system] swap boolean rotation-lock for enumerated type orientation-lock

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

looks fine, thanks

review: Approve
Revision history for this message
Sebastien Bacher (seb128) wrote :

in fact the key you are dropping is used in ubuntu-system-settings, it should either be kept for the transition, or should do the setting side of the changes as well and land them together with updated depends

review: Needs Fixing
Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

>
> in fact the key you are dropping is used in ubuntu-system-settings, it
> should either be kept for the transition, or should do the setting side of
> the changes as well and land them together with updated depends
>
> ​The latter was the plan. I am working on the branch in USS that points at
the new setting.​

Revision history for this message
Sebastien Bacher (seb128) wrote :

ok, setting as approved then, please make sure they go in the same silo though

review: Approve
Revision history for this message
Iain Lane (laney) wrote :

On Tue, Aug 12, 2014 at 03:26:55PM -0000, Sebastien Bacher wrote:
> Review: Needs Fixing
>
> in fact the key you are dropping is used in ubuntu-system-settings, it should either be kept for the transition, or should do the setting side of the changes as well and land them together with updated depends

You should Breaks: u-s-s (<= current-version) otherwise people can
upgrade the schemas while having a version of u-s-s which needs them.

Otherwise I'd just keep the old one for now and mark it as deprecated in
its description.

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

Revision history for this message
Sebastien Bacher (seb128) wrote :

Note that we don't display that UI at the moment, so in might not create issue even on partial update (not sure if it tries to load/init it though, in which case it would make things unhappy)

43. By Jonas G. Drange

reinstate lock-rotation, describe it as deprecated

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'schemas/com.ubuntu.touch.system.gschema.xml.in.in'
2--- schemas/com.ubuntu.touch.system.gschema.xml.in.in 2014-01-27 10:37:56 +0000
3+++ schemas/com.ubuntu.touch.system.gschema.xml.in.in 2014-08-12 18:00:22 +0000
4@@ -1,12 +1,25 @@
5 <schemalist gettext-domain="gsettings-ubuntu-touch-schemas">
6+ <enum id="com.ubuntu.system.ScreenOrientation">
7+ <value value="0" nick="none"/>
8+ <value value="1" nick="PrimaryOrientation"/>
9+ <value value="2" nick="LandscapeOrientation"/>
10+ <value value="3" nick="PortraitOrientation"/>
11+ <value value="4" nick="InvertedLandscapeOrientation"/>
12+ <value value="5" nick="InvertedPortraitOrientation"/>
13+ </enum>
14 <schema id="com.ubuntu.touch.system" path="/com/ubuntu/touch/system/">
15 <key name="rotation-lock" type="b">
16 <default>false</default>
17 <_summary>Lock rotation</_summary>
18 <_description>
19- Whether the device should change orientation when it is rotated.
20+ Deprecated.
21 </_description>
22 </key>
23+ <key name="orientation-lock" enum="com.ubuntu.system.ScreenOrientation">
24+ <default>"none"</default>
25+ <_summary>Orientation lock</_summary>
26+ <_description>Locks orientation to a specific value.</_description>
27+ </key>
28 <key name="auto-brightness" type="b">
29 <default>false</default>
30 <_summary>Automatic brightness</_summary>

Subscribers

People subscribed via source and target branches