Editing Livewallpaper

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
-
API(Draft) for external theme :
+
LiveWallpaper
-
<ol>
+
 
-
<li>
+
API for external theme:
-
You need to create XML file with description your external theme. See example below:
+
 
 +
1. You need to create xml file with description your external theme.
 +
See example below:
Example for external theme Abstractile:
Example for external theme Abstractile:
-
<source lang="xml">
 
-
<theme>
 
-
<name>Abstractile</name>
 
-
<exec_path>/usr/lib/xscreensaver/abstractile</exec_path>
 
-
<window_id>-window-id</window_id>
 
-
<view>-view</view>
 
-
<category>xscreensaver</category>
 
-
</theme>
 
-
</source>
 
-
Where
+
<theme>
-
* <code>name</code> - name of theme.
+
  <name>Abstractile</name>
-
* <code>exec_path</code> - path to the executable binary file for this theme.
+
  <exec_path>/usr/lib/xscreensaver/abstractile</exec_path>
-
* <code>window_id</code> - option name for the X11 Window ID. Your application should take value from this option and to use this 'window' for drawing.
+
  <window_id>-window-id</window_id>
-
* <code>view</code> - option name for the view number on which your application will be started). Your application should take this option.
+
  <view>-view</view>
-
* <code>category</code> - category name for theme.
+
  <category>xscreensaver</category>
-
</li>
+
</theme>
-
<li>
+
                                                                                  Where
-
Your application must go to sleep on the D-Bus signal:
+
name - name of Theme
-
<pre>
+
exec_path - path for execute binary file for this theme
-
interface='org.maemo.livewp', member='pause_livebg_on_view%i'
+
window_id - name of parameter for X11 Window ID. This ID have to receive livewallpaper
-
</pre>
+
view - name of parameter for number of view on desktop (where your application start). This number have to receive livewallpaper
-
and wake up on the D-Bus signal:
+
category - name of category for theme
-
<pre>
+
 
-
interface='org.maemo.livewp', member='play_livebg_on_view%i'
+
 
-
</pre>
+
-
where %i - view number.
+
-
</li>
+
-
</ol>
+
          
          
[[Category:Software]]
[[Category:Software]]

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)