Merge lp:~hikiko/gsettings-ubuntu-touch-schemas/scale-factor-for-unity7-unity8 into lp:gsettings-ubuntu-touch-schemas

Proposed by Eleni Maria Stea
Status: Merged
Merged at revision: 22
Proposed branch: lp:~hikiko/gsettings-ubuntu-touch-schemas/scale-factor-for-unity7-unity8
Merge into: lp:gsettings-ubuntu-touch-schemas
Diff against target: 55 lines (+23/-1)
4 files modified
po/POTFILES.in (+1/-0)
po/POTFILES.skip (+1/-0)
schemas/Makefile.am (+2/-1)
schemas/com.ubuntu.user-interface.gschema.xml.in.in (+19/-0)
To merge this branch: bzr merge lp:~hikiko/gsettings-ubuntu-touch-schemas/scale-factor-for-unity7-unity8
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Florian Boucault (community) Needs Fixing
Sebastien Bacher (community) Approve
Brandon Schaefer (community) Approve
Review via email: mp+206240@code.launchpad.net

Commit message

new gsetting (scale factor for desktop components) and schema for unity 7 and unity 8

Description of the change

new gsetting (scale factor for desktop components) and schema for unity 7 and unity 8

To post a comment you must log in.
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

LGTM

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sebastien Bacher (seb128) wrote :

Looks good to me, thanks!

review: Approve
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Did anyone notice the schema file is called com.ubuntu.user-interface.gschema.xml but the schema is called com.ubuntu.desktop? They are normally the same...

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

> Did anyone notice the schema file is called com.ubuntu.user-interface.gschema.xml but the schema is called com.ubuntu.desktop? They are normally the same...

Yeah, I noticed that as well and it seems a bit odd but it's work, +1 from me to use a consistent naming though

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

Umm, I didn't notice that. Can we fix it before uploading?

Revision history for this message
Eleni Maria Stea (hikiko) wrote :

Hey, sorry about this let me fix it

Revision history for this message
Florian Boucault (fboucault) wrote :

I would like to fix the documentation before it lands too. Here is my proposal:

"""
Per monitor scale factor for all user interface components.
The values are stored in a dictionary where the keys are IDs of monitors and the values are the scale factors.
The scale factors are not the traditional float scale factors that one might expect. Instead they are integers that need to be divided by 8 before being used as regular scale factors.
That limits the number of possible scalings applied to the UI without jeopardizing flexibility (there is still enough possible scalings for all devices out there). This limiting allows for better testing since there is now only a finite number of possible scalings.
The scale factor also maps directly to the grid units used in the Ubuntu UI Toolkit where one grid unit is exactly equal to 'scale factor' number of pixels.
"""

review: Needs Fixing
Revision history for this message
Florian Boucault (fboucault) wrote :

The schema is supposed to be "com.ubuntu.user-interface", renaming it in the file was just something that was forgotten.

Revision history for this message
Eleni Maria Stea (hikiko) wrote :

let me change the doc too

25. By Eleni Maria Stea

fixed documentation

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'po/POTFILES.in'
2--- po/POTFILES.in 2013-07-29 15:07:45 +0000
3+++ po/POTFILES.in 2014-02-19 11:21:35 +0000
4@@ -3,3 +3,4 @@
5 schemas/com.ubuntu.touch.network.gschema.xml.in.in
6 schemas/com.ubuntu.touch.sound.gschema.xml.in.in
7 schemas/com.ubuntu.touch.system.gschema.xml.in.in
8+schemas/com.ubuntu.user-interface.gschema.xml.in.in
9
10=== modified file 'po/POTFILES.skip'
11--- po/POTFILES.skip 2013-07-19 14:38:00 +0000
12+++ po/POTFILES.skip 2014-02-19 11:21:35 +0000
13@@ -3,3 +3,4 @@
14 # Please keep this file sorted alphabetically.
15 schemas/com.ubuntu.touch.network.gschema.xml.in
16 schemas/com.ubuntu.touch.system.gschema.xml.in
17+schemas/com.ubuntu.user-interface.gschema.xml.in
18
19=== modified file 'schemas/Makefile.am'
20--- schemas/Makefile.am 2013-07-29 15:07:45 +0000
21+++ schemas/Makefile.am 2014-02-19 11:21:35 +0000
22@@ -1,7 +1,8 @@
23 desktop_gschemas_in_in = \
24 com.ubuntu.touch.network.gschema.xml.in.in \
25 com.ubuntu.touch.sound.gschema.xml.in.in \
26- com.ubuntu.touch.system.gschema.xml.in.in
27+ com.ubuntu.touch.system.gschema.xml.in.in \
28+ com.ubuntu.user-interface.gschema.xml.in.in
29
30 @INTLTOOL_XML_NOMERGE_RULE@
31
32
33=== added file 'schemas/com.ubuntu.user-interface.gschema.xml.in.in'
34--- schemas/com.ubuntu.user-interface.gschema.xml.in.in 1970-01-01 00:00:00 +0000
35+++ schemas/com.ubuntu.user-interface.gschema.xml.in.in 2014-02-19 11:21:35 +0000
36@@ -0,0 +1,19 @@
37+<schemalist gettext-domain="gsettings-ubuntu-touch-schemas">
38+ <schema id="com.ubuntu.user-interface" path="/com/ubuntu/user-interface/">
39+ <key name="scale-factor" type="a{si}">
40+ <_summary>Per monitor scale factor</_summary>
41+ <default>{}</default>
42+ <_description>
43+ Per monitor scale factor for all user interface components.
44+ The values are stored in a dictionary where the keys are IDs of monitors and the values are the scale factors.
45+ The scale factors are not the traditional float scale factors that one might expect. Instead they are integers
46+ that need to be divided by 8 before being used as regular scale factors.
47+ That limits the number of possible scalings applied to the UI without jeopardizing flexibility (there is still
48+ enough possible scalings for all devices out there). This limiting allows for better testing since there is now
49+ only a finite number of possible scalings.
50+ The scale factor also maps directly to the grid units used in the Ubuntu UI Toolkit where one grid unit is
51+ exactly equal to 'scale factor' number of pixels.
52+ </_description>
53+ </key>
54+ </schema>
55+</schemalist>

Subscribers

People subscribed via source and target branches