8000 xlet-settings-ref.xml: Updates datechooser, timechooser and layout docs by claudiux · Pull Request #12864 · linuxmint/cinnamon · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

xlet-settings-ref.xml: Updates datechooser, timechooser and layout docs #12864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions docs/reference/cinnamon-tutorials/xlet-settings-ref.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<title>datechooser</title>
<itemizedlist>
<listitem><code>type</code>: should be <code>datechooser</code></listitem>
<listitem><code>default</code>: default date - should be of the form <code>{d: '1', m: '1', y: '2000'}</code></listitem>
<listitem><code>default</code>: default date - should be of the form <code>{'d': 1, 'm': 1, 'y': 2025}</code></listitem>
<listitem><code>description</code>: String describing the setting</listitem>
</itemizedlist>

Expand All @@ -167,7 +167,7 @@
<title>timechooser</title>
<itemizedlist>
<listitem><code>type</code>: should be <code>timechooser</code></listitem>
<listitem><code>default</code>: default time - should be of the form <code>{h: '12', m: '0', s: '0'}</code></listitem>
<listitem><code>default</code>: default time - should be of the form <code>{'h': 12, 'm': 0, 's': 0}</code></listitem>
<listitem><code>description</code>: String describing the setting</listitem>
</itemizedlist>

Expand Down Expand Up @@ -226,7 +226,8 @@
<para>Here is an example of what a layout object might look like:</para>
<informalexample>
<programlisting>
"layout" : {
"customLayout" : {
"type" : "layout",
"pages" : ["page1", "page2"],
"page1" : {
"type" : "page",
Expand Down Expand Up @@ -260,6 +261,25 @@
}
}</programlisting>
</informalexample>

<para>All settings (here "setting1" to "setting8") must be defined after the layout definition.</para>
<informalexample>
<programlisting>
{
"customLayout" : {
"type" : "layout",
[...]
},
"setting1" : {
[...]
},
[...]
"setting8" : {
[...]
}
}</programlisting>
</informalexample>

<para>New in Cinnamon 3.2</para>

</sect3>
Expand Down Expand Up @@ -465,7 +485,7 @@ xlet-settings &lt;type&gt; &lt;uuid&gt; &lt;instanceid&gt;</programlisting>
xlet-settings &lt;type&gt; &lt;uuid&gt; -i &lt;instanceid&gt; -t &lt;tabnumber&gt;</programlisting>
</informalexample>
<para>
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>.
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>.
</para>
<para>
The second command is new in Cinnamon 4.2.
Expand Down
Loading
0