Livewallpaper
Line 2: | Line 2: | ||
- | API for external theme: | + | API(Draft) for external theme : |
1. You need to create xml file with description your external theme. | 1. You need to create xml file with description your external theme. | ||
Line 19: | Line 19: | ||
* name - name of theme. | * name - name of theme. | ||
* exec_path - path to the executable binary file for this theme. | * exec_path - path to the executable binary file for this theme. | ||
- | * window_id - option name for the X11 Window ID. Your application should take this option. | + | * window_id - option name for the X11 Window ID. Your application should take value from this option and to use this 'window' for drawing. |
* view - option name for the view number on which your application will be started). Your application should take this option. | * view - option name for the view number on which your application will be started). Your application should take this option. | ||
*category - category name for theme. | *category - category name for theme. |
Revision as of 11:21, 22 August 2010
LiveWallpaper
API(Draft) for external theme :
1. You need to create xml file with description your external theme. See example below:
Example for external theme Abstractile:
<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>
Where
- name - name of theme.
- exec_path - path to the executable binary file for this theme.
- window_id - option name for the X11 Window ID. Your application should take value from this option and to use this 'window' for drawing.
- view - option name for the view number on which your application will be started). Your application should take this option.
- category - category name for theme.
2. Your application must go to sleep on the dbus signal:
interface='org.maemo.livewp', member='pause_livebg_on_view%i'
and wake up on the dbus signal:
interface='org.maemo.livewp', member='play_livebg_on_view%i',
where %i - view number.