|
155 | 155 | <title>datechooser</title> |
156 | 156 | <itemizedlist> |
157 | 157 | <listitem><code>type</code>: should be <code>datechooser</code></listitem> |
158 | | - <listitem><code>default</code>: default date - should be of the form <code>{d: '1', m: '1', y: '2000'}</code></listitem> |
| 158 | + <listitem><code>default</code>: default date - should be of the form <code>{'d': 1, 'm': 1, 'y': 2025}</code></listitem> |
159 | 159 | <listitem><code>description</code>: String describing the setting</listitem> |
160 | 160 | </itemizedlist> |
161 | 161 |
|
|
167 | 167 | <title>timechooser</title> |
168 | 168 | <itemizedlist> |
169 | 169 | <listitem><code>type</code>: should be <code>timechooser</code></listitem> |
170 | | - <listitem><code>default</code>: default time - should be of the form <code>{h: '12', m: '0', s: '0'}</code></listitem> |
| 170 | + <listitem><code>default</code>: default time - should be of the form <code>{'h': 12, 'm': 0, 's': 0}</code></listitem> |
171 | 171 | <listitem><code>description</code>: String describing the setting</listitem> |
172 | 172 | </itemizedlist> |
173 | 173 |
|
|
226 | 226 | <para>Here is an example of what a layout object might look like:</para> |
227 | 227 | <informalexample> |
228 | 228 | <programlisting> |
229 | | -"layout" : { |
| 229 | +"customLayout" : { |
| 230 | + "type" : "layout", |
230 | 231 | "pages" : ["page1", "page2"], |
231 | 232 | "page1" : { |
232 | 233 | "type" : "page", |
|
260 | 261 | } |
261 | 262 | }</programlisting> |
262 | 263 | </informalexample> |
| 264 | + |
| 265 | + <para>All settings (here "setting1" to "setting8") must be defined after the layout definition.</para> |
| 266 | + <informalexample> |
| 267 | + <programlisting> |
| 268 | +{ |
| 269 | + "customLayout" : { |
| 270 | + "type" : "layout", |
| 271 | + [...] |
| 272 | + }, |
| 273 | + "setting1" : { |
| 274 | + [...] |
| 275 | + }, |
| 276 | + [...] |
| 277 | + "setting8" : { |
| 278 | + [...] |
| 279 | + } |
| 280 | +}</programlisting> |
| 281 | + </informalexample> |
| 282 | + |
263 | 283 | <para>New in Cinnamon 3.2</para> |
264 | 284 |
|
265 | 285 | </sect3> |
@@ -465,7 +485,7 @@ xlet-settings <type> <uuid> <instanceid></programlisting> |
465 | 485 | xlet-settings <type> <uuid> -i <instanceid> -t <tabnumber></programlisting> |
466 | 486 | </informalexample> |
467 | 487 | <para> |
468 | | - Where <code>type</code> is <code>applet</code>, <code>desklet</code> or <code>extension</code> depending on what type it is. The <code>instanceid</code> is optional. The <code>tabnumber</code> is optional and designates the tab (or page) you want to access; the tabs are numbered from <code>0</code> to <code>number of tabs - 1</code>. |
| 488 | + Where <code>type</code> is <code>applet</code>, <code>desklet</code> or <code>extension</code> depending on what type it is. The <code>instanceid</code> is optional. The <code>tabnumber</code> is optional and designates the tab (or page) you want to access; the tabs are numbered from <code>0</code> to <code>number of tabs - 1</code>. |
469 | 489 | </para> |
470 | 490 | <para> |
471 | 491 | The second command is new in Cinnamon 4.2. |
|
0 commit comments