Merge lp:~robert-ancell/onboard/bug-982699 into lp:onboard

Proposed by Robert Ancell
Status: Merged
Merge reported by: marmuta
Merged at revision: not available
Proposed branch: lp:~robert-ancell/onboard/bug-982699
Merge into: lp:onboard
Diff against target: 393 lines (+138/-138)
3 files modified
Onboard/Config.py (+17/-17)
data/com.ubuntu.onboard.gschema.xml (+119/-119)
data/onboard.convert (+2/-2)
To merge this branch: bzr merge lp:~robert-ancell/onboard/bug-982699
Reviewer Review Type Date Requested Status
marmuta Approve
Review via email: mp+102047@code.launchpad.net

Description of the change

See bug 982699. I don't know if there's a migration issue for 0.96.0 and 0.97.0 users.

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

Thank you. Yes we would have to migrate the old settings. Snippets in particular, but other stuff, like scanner settings, would be annoying to lose too. There are quit a lot of keys overall, it's probably best to just recursively copy them all.

AFAIK there is no official plan in place for GIO to handle this, but for the majority of installations we can probably pull the old data from dconf. At least this is how I did it before on a smaller scale, see migrate_dconf_value calls in Config.py. migrate_dconf_value doesn't handle a lot of data types yet though.

If you'd like to do this, that would be great, but let's wait until we know what exactly to do, if and where to move to.

Revision history for this message
marmuta (marmuta) wrote :

This is merged now. I've changed the paths to /org/onboard and added migration for all keys. Thanks again, Robert.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Onboard/Config.py'
2--- Onboard/Config.py 2012-03-31 13:29:36 +0000
3+++ Onboard/Config.py 2012-04-16 01:04:18 +0000
4@@ -24,19 +24,19 @@
5 ###############
6
7 # gsettings objects
8-SCHEMA_ONBOARD = "apps.onboard"
9-SCHEMA_KEYBOARD = "apps.onboard.keyboard"
10-SCHEMA_WINDOW = "apps.onboard.window"
11-SCHEMA_WINDOW_LANDSCAPE = "apps.onboard.window.landscape"
12-SCHEMA_WINDOW_PORTRAIT = "apps.onboard.window.portrait"
13-SCHEMA_ICP = "apps.onboard.icon-palette"
14-SCHEMA_ICP_LANDSCAPE = "apps.onboard.icon-palette.landscape"
15-SCHEMA_ICP_PORTRAIT = "apps.onboard.icon-palette.portrait"
16-SCHEMA_AUTO_SHOW = "apps.onboard.auto-show"
17-SCHEMA_UNIVERSAL_ACCESS = "apps.onboard.universal-access"
18-SCHEMA_THEME = "apps.onboard.theme-settings"
19-SCHEMA_LOCKDOWN = "apps.onboard.lockdown"
20-SCHEMA_SCANNER = "apps.onboard.scanner"
21+SCHEMA_ONBOARD = "com.ubuntu.onboard"
22+SCHEMA_KEYBOARD = "com.ubuntu.onboard.keyboard"
23+SCHEMA_WINDOW = "com.ubuntu.onboard.window"
24+SCHEMA_WINDOW_LANDSCAPE = "com.ubuntu.onboard.window.landscape"
25+SCHEMA_WINDOW_PORTRAIT = "com.ubuntu.onboard.window.portrait"
26+SCHEMA_ICP = "com.ubuntu.onboard.icon-palette"
27+SCHEMA_ICP_LANDSCAPE = "com.ubuntu.onboard.icon-palette.landscape"
28+SCHEMA_ICP_PORTRAIT = "com.ubuntu.onboard.icon-palette.portrait"
29+SCHEMA_AUTO_SHOW = "com.ubuntu.onboard.auto-show"
30+SCHEMA_UNIVERSAL_ACCESS = "com.ubuntu.onboard.universal-access"
31+SCHEMA_THEME = "com.ubuntu.onboard.theme-settings"
32+SCHEMA_LOCKDOWN = "com.ubuntu.onboard.lockdown"
33+SCHEMA_SCANNER = "com.ubuntu.onboard.scanner"
34 SCHEMA_GSS = "org.gnome.desktop.screensaver"
35 SCHEMA_GDI = "org.gnome.desktop.interface"
36
37@@ -385,8 +385,8 @@
38 format = Version.from_string(self.schema_version)
39 if format < SCHEMA_VERSION_0_97:
40
41- # window rect moves from apps.onboard to
42- # apps.onboard.window.landscape/portrait
43+ # window rect moves from com.ubuntu.onboard to
44+ # com.ubuntu.onboard.window.landscape/portrait
45 co = self.window.landscape
46 if co.gskeys["x"].is_default() and \
47 co.gskeys["y"].is_default() and \
48@@ -400,8 +400,8 @@
49 migrate_dconf_value("/apps/onboard/height", co, co.gskeys["height"])
50 co.settings.apply()
51
52- # icon-palette rect moves from apps.onboard.icon-palette to
53- # apps.onboard.icon-palette.landscape/portrait
54+ # icon-palette rect moves from com.ubuntu.onboard.icon-palette to
55+ # com.ubuntu.onboard.icon-palette.landscape/portrait
56 co = self.icp.landscape
57 if co.gskeys["x"].is_default() and \
58 co.gskeys["y"].is_default() and \
59
60=== renamed file 'data/onboard.gschema.xml' => 'data/com.ubuntu.onboard.gschema.xml'
61--- data/onboard.gschema.xml 2012-02-14 15:39:47 +0000
62+++ data/com.ubuntu.onboard.gschema.xml 2012-04-16 01:04:18 +0000
63@@ -1,5 +1,5 @@
64 <schemalist>
65- <schema id="apps.onboard" path="/apps/onboard/">
66+ <schema id="com.ubuntu.onboard" path="/com/ubuntu/onboard/">
67 <key name="schema-version" type="s">
68 <default>""</default>
69 <summary>Schema version</summary>
70@@ -70,17 +70,17 @@
71 <summary>Current settings page</summary>
72 <description>Current tab page of onboard-settings.</description>
73 </key>
74- <child name="auto-show" schema="apps.onboard.auto-show" />
75- <child name="keyboard" schema="apps.onboard.keyboard" />
76- <child name="window" schema="apps.onboard.window" />
77- <child name="icon-palette" schema="apps.onboard.icon-palette" />
78- <child name="universal-access" schema="apps.onboard.universal-access" />
79- <child name="theme-settings" schema="apps.onboard.theme-settings" />
80- <child name="lockdown" schema="apps.onboard.lockdown" />
81- <child name="scanner" schema="apps.onboard.scanner" />
82+ <child name="auto-show" schema="com.ubuntu.onboard.auto-show" />
83+ <child name="keyboard" schema="com.ubuntu.onboard.keyboard" />
84+ <child name="window" schema="com.ubuntu.onboard.window" />
85+ <child name="icon-palette" schema="com.ubuntu.onboard.icon-palette" />
86+ <child name="universal-access" schema="com.ubuntu.onboard.universal-access" />
87+ <child name="theme-settings" schema="com.ubuntu.onboard.theme-settings" />
88+ <child name="lockdown" schema="com.ubuntu.onboard.lockdown" />
89+ <child name="scanner" schema="com.ubuntu.onboard.scanner" />
90 </schema>
91
92- <schema id="apps.onboard.auto-show" path="/apps/onboard/auto-show/">
93+ <schema id="com.ubuntu.onboard.auto-show" path="/com/ubuntu/onboard/auto-show/">
94 <key name="enabled" type="b">
95 <default>false</default>
96 <summary>Auto-show enabled</summary>
97@@ -93,7 +93,7 @@
98 </key>
99 </schema>
100
101- <schema id="apps.onboard.keyboard" path="/apps/onboard/keyboard/">
102+ <schema id="com.ubuntu.onboard.keyboard" path="/com/ubuntu/onboard/keyboard/">
103 <key name="show-click-buttons" type="b">
104 <default>false</default>
105 <summary>Show click buttons</summary>
106@@ -115,7 +115,7 @@
107 </key>
108 </schema>
109
110- <schema id="apps.onboard.window" path="/apps/onboard/window/">
111+ <schema id="com.ubuntu.onboard.window" path="/com/ubuntu/onboard/window/">
112 <key name="window-state-sticky" type="b">
113 <default>true</default>
114 <summary>Always on visible workspace</summary>
115@@ -172,57 +172,57 @@
116 <description>Active resize handles, space separated.</description>
117 </key>
118
119- <child name="landscape" schema="apps.onboard.window.landscape"/>
120- <child name="portrait" schema="apps.onboard.window.portrait"/>
121- </schema>
122-
123- <schema id="apps.onboard.window.landscape" path="/apps/onboard/window/landscape/">
124- <key name="x" type="i">
125- <default>100</default>
126- <summary>X position of the keyboard</summary>
127- <description>Horizontal position of the keyboard window.</description>
128- </key>
129- <key name="y" type="i">
130- <default>50</default>
131- <summary>Y position of the keyboard</summary>
132- <description>Vertical position of the keyboard window.</description>
133- </key>
134- <key name="width" type="i">
135- <default>600</default>
136- <summary>Window width</summary>
137- <description>Width of the keyboard window.</description>
138- </key>
139- <key name="height" type="i">
140- <default>200</default>
141- <summary>Window height</summary>
142- <description>Height of the keyboard window..</description>
143- </key>
144- </schema>
145-
146- <schema id="apps.onboard.window.portrait" path="/apps/onboard/window/portrait/">
147- <key name="x" type="i">
148- <default>100</default>
149- <summary>X position of the keyboard</summary>
150- <description>Horizontal position of the keyboard window.</description>
151- </key>
152- <key name="y" type="i">
153- <default>50</default>
154- <summary>Y position of the keyboard</summary>
155- <description>Vertical position of the keyboard window.</description>
156- </key>
157- <key name="width" type="i">
158- <default>600</default>
159- <summary>Window width</summary>
160- <description>Width of the keyboard window.</description>
161- </key>
162- <key name="height" type="i">
163- <default>200</default>
164- <summary>Window height</summary>
165- <description>Height of the keyboard window..</description>
166- </key>
167- </schema>
168-
169- <schema id="apps.onboard.icon-palette" path="/apps/onboard/icon-palette/">
170+ <child name="landscape" schema="com.ubuntu.onboard.window.landscape"/>
171+ <child name="portrait" schema="com.ubuntu.onboard.window.portrait"/>
172+ </schema>
173+
174+ <schema id="com.ubuntu.onboard.window.landscape" path="/com/ubuntu/onboard/window/landscape/">
175+ <key name="x" type="i">
176+ <default>100</default>
177+ <summary>X position of the keyboard</summary>
178+ <description>Horizontal position of the keyboard window.</description>
179+ </key>
180+ <key name="y" type="i">
181+ <default>50</default>
182+ <summary>Y position of the keyboard</summary>
183+ <description>Vertical position of the keyboard window.</description>
184+ </key>
185+ <key name="width" type="i">
186+ <default>600</default>
187+ <summary>Window width</summary>
188+ <description>Width of the keyboard window.</description>
189+ </key>
190+ <key name="height" type="i">
191+ <default>200</default>
192+ <summary>Window height</summary>
193+ <description>Height of the keyboard window..</description>
194+ </key>
195+ </schema>
196+
197+ <schema id="com.ubuntu.onboard.window.portrait" path="/com/ubuntu/onboard/window/portrait/">
198+ <key name="x" type="i">
199+ <default>100</default>
200+ <summary>X position of the keyboard</summary>
201+ <description>Horizontal position of the keyboard window.</description>
202+ </key>
203+ <key name="y" type="i">
204+ <default>50</default>
205+ <summary>Y position of the keyboard</summary>
206+ <description>Vertical position of the keyboard window.</description>
207+ </key>
208+ <key name="width" type="i">
209+ <default>600</default>
210+ <summary>Window width</summary>
211+ <description>Width of the keyboard window.</description>
212+ </key>
213+ <key name="height" type="i">
214+ <default>200</default>
215+ <summary>Window height</summary>
216+ <description>Height of the keyboard window..</description>
217+ </key>
218+ </schema>
219+
220+ <schema id="com.ubuntu.onboard.icon-palette" path="/com/ubuntu/onboard/icon-palette/">
221 <key name="in-use" type="b">
222 <default>false</default>
223 <summary>Show icon palette when onboard is minimized.</summary>
224@@ -233,57 +233,57 @@
225 <summary>Resize handles</summary>
226 <description>Active resize handles, space separated.</description>
227 </key>
228- <child name="landscape" schema="apps.onboard.icon-palette.landscape"/>
229- <child name="portrait" schema="apps.onboard.icon-palette.portrait"/>
230- </schema>
231-
232- <schema id="apps.onboard.icon-palette.landscape" path="/apps/onboard/icon-palette/landscape/">
233- <key name="x" type="i">
234- <default>100</default>
235- <summary>Horizontal position of the icon palette.</summary>
236- <description>Horizontal position of the icon palette on the screen.</description>
237- </key>
238- <key name="y" type="i">
239- <default>50</default>
240- <summary>Vertical position of the icon palette.</summary>
241- <description>Vertical position of the icon palette on the screen.</description>
242- </key>
243- <key name="width" type="i">
244- <default>64</default>
245- <summary>Width of the icon palette.</summary>
246- <description>Horizontal size in pixel of the icon palette.</description>
247- </key>
248- <key name="height" type="i">
249- <default>64</default>
250- <summary>Height of the icon palette.</summary>
251- <description>Vertical size in pixel of the icon palette.</description>
252- </key>
253- </schema>
254-
255- <schema id="apps.onboard.icon-palette.portrait" path="/apps/onboard/icon-palette/portrait/">
256- <key name="x" type="i">
257- <default>100</default>
258- <summary>Horizontal position of the icon palette.</summary>
259- <description>Horizontal position of the icon palette on the screen.</description>
260- </key>
261- <key name="y" type="i">
262- <default>50</default>
263- <summary>Vertical position of the icon palette.</summary>
264- <description>Vertical position of the icon palette on the screen.</description>
265- </key>
266- <key name="width" type="i">
267- <default>64</default>
268- <summary>Width of the icon palette.</summary>
269- <description>Horizontal size in pixel of the icon palette.</description>
270- </key>
271- <key name="height" type="i">
272- <default>64</default>
273- <summary>Height of the icon palette.</summary>
274- <description>Vertical size in pixel of the icon palette.</description>
275- </key>
276- </schema>
277-
278- <schema id="apps.onboard.universal-access" path="/apps/onboard/universal-access/">
279+ <child name="landscape" schema="com.ubuntu.onboard.icon-palette.landscape"/>
280+ <child name="portrait" schema="com.ubuntu.onboard.icon-palette.portrait"/>
281+ </schema>
282+
283+ <schema id="com.ubuntu.onboard.icon-palette.landscape" path="/com/ubuntu/onboard/icon-palette/landscape/">
284+ <key name="x" type="i">
285+ <default>100</default>
286+ <summary>Horizontal position of the icon palette.</summary>
287+ <description>Horizontal position of the icon palette on the screen.</description>
288+ </key>
289+ <key name="y" type="i">
290+ <default>50</default>
291+ <summary>Vertical position of the icon palette.</summary>
292+ <description>Vertical position of the icon palette on the screen.</description>
293+ </key>
294+ <key name="width" type="i">
295+ <default>64</default>
296+ <summary>Width of the icon palette.</summary>
297+ <description>Horizontal size in pixel of the icon palette.</description>
298+ </key>
299+ <key name="height" type="i">
300+ <default>64</default>
301+ <summary>Height of the icon palette.</summary>
302+ <description>Vertical size in pixel of the icon palette.</description>
303+ </key>
304+ </schema>
305+
306+ <schema id="com.ubuntu.onboard.icon-palette.portrait" path="/com/ubuntu/onboard/icon-palette/portrait/">
307+ <key name="x" type="i">
308+ <default>100</default>
309+ <summary>Horizontal position of the icon palette.</summary>
310+ <description>Horizontal position of the icon palette on the screen.</description>
311+ </key>
312+ <key name="y" type="i">
313+ <default>50</default>
314+ <summary>Vertical position of the icon palette.</summary>
315+ <description>Vertical position of the icon palette on the screen.</description>
316+ </key>
317+ <key name="width" type="i">
318+ <default>64</default>
319+ <summary>Width of the icon palette.</summary>
320+ <description>Horizontal size in pixel of the icon palette.</description>
321+ </key>
322+ <key name="height" type="i">
323+ <default>64</default>
324+ <summary>Height of the icon palette.</summary>
325+ <description>Vertical size in pixel of the icon palette.</description>
326+ </key>
327+ </schema>
328+
329+ <schema id="com.ubuntu.onboard.universal-access" path="/com/ubuntu/onboard/universal-access/">
330 <key name="drag-threshold" type="i">
331 <default>-1</default>
332 <summary>Drag threshold</summary>
333@@ -301,7 +301,7 @@
334 </key>
335 </schema>
336
337- <schema id="apps.onboard.theme-settings" path="/apps/onboard/theme-settings/">
338+ <schema id="com.ubuntu.onboard.theme-settings" path="/com/ubuntu/onboard/theme-settings/">
339 <key name="color-scheme" type="s">
340 <default>''</default>
341 <summary>Color scheme filename</summary>
342@@ -349,7 +349,7 @@
343 </key>
344 </schema>
345
346- <schema id="apps.onboard.lockdown" path="/apps/onboard/lockdown/">
347+ <schema id="com.ubuntu.onboard.lockdown" path="/com/ubuntu/onboard/lockdown/">
348 <key name="disable-click-buttons" type="b">
349 <default>false</default>
350 <summary>Disallow showing click helpers</summary>
351@@ -377,20 +377,20 @@
352 </key>
353 </schema>
354
355- <enum id="apps.onboard.scanner.ScanMode">
356+ <enum id="com.ubuntu.onboard.scanner.ScanMode">
357 <value nick="Autoscan" value="0"/>
358 <value nick="Overscan" value="1"/>
359 <value nick="Stepscan" value="2"/>
360 <value nick="Directed" value="3"/>
361 </enum>
362
363- <schema id="apps.onboard.scanner" path="/apps/onboard/scanner/">
364+ <schema id="com.ubuntu.onboard.scanner" path="/com/ubuntu/onboard/scanner/">
365 <key name="enabled" type="b">
366 <default>false</default>
367 <summary>Enable scanner</summary>
368 <description>Set Onboard to keyboard scanning mode.</description>
369 </key>
370- <key name="mode" enum="apps.onboard.scanner.ScanMode">
371+ <key name="mode" enum="com.ubuntu.onboard.scanner.ScanMode">
372 <default>"Autoscan"</default>
373 <summary>Scan mode</summary>
374 <description>The scan mode determines how the scanner moves between keys.</description>
375
376=== modified file 'data/onboard.convert'
377--- data/onboard.convert 2012-01-21 06:44:13 +0000
378+++ data/onboard.convert 2012-04-16 01:04:18 +0000
379@@ -1,4 +1,4 @@
380-[apps.onboard]
381+[com.ubuntu.onboard]
382 layout = /apps/onboard/layout_filename
383 theme = /apps/onboard/theme_filename
384 x = /apps/onboard/horizontal_position
385@@ -10,7 +10,7 @@
386 show-status-icon = /apps/onboard/use_status_icon
387 xembed-onboard = /apps/onboard/xembed_onboard
388
389-[apps.onboard.icon-palette]
390+[com.ubuntu.onboard.icon-palette]
391 in-use = /apps/onboard/icon_palette/in_use
392 x = /apps/onboard/icon_palette/horizontal_position
393 y = /apps/onboard/icon_palette/vertical_position

Subscribers

People subscribed via source and target branches