added possibilty to configure in Control Panel
[livewp] / applet / src / livewp-control-widget.c
1 /*vim: set sw=4 ts=4 et: */
2 /*
3  * This file is part of Live Wallpaper (livewp)
4  * 
5  * Copyright (C) 2010 Vlad Vasiliev
6  * Copyright (C) 2010 Tanya Makova
7  *       for the code
8  * 
9  * This software is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public License
11  * as published by the Free Software Foundation; either version 2.1 of
12  * the License, or (at your option) any later version.
13  * 
14  * This software is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  * 
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this software; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22  * 02110-1301 USA
23 */
24 /*******************************************************************************/
25 #include "livewp-common.h" 
26 #include "livewp-control-widget.h"
27
28 osso_return_t 
29 execute(osso_context_t *osso, gpointer data, gboolean user_activated){
30
31     Animation_WallpaperPrivate *priv = g_new0 (Animation_WallpaperPrivate, 1);
32     priv->osso = osso_initialize("org.maemo.livewp", VERSION, TRUE, NULL);
33     /* Load config */
34     read_config(priv);
35     /* Initialize DBUS */
36     livewp_initialize_dbus(priv);
37
38
39     lw_settings(priv, data);
40     return OSSO_OK;
41
42 }
43
44 osso_return_t 
45 save_state(osso_context_t *osso, gpointer data)
46 {
47                 /* ... save state ... */
48                 fprintf(stderr,"SAVE state\n");
49                 return OSSO_OK;
50 }
51