changed license to GPL v2
[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 General Public License
11  * as published by the Free Software Foundation; either version 2 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->theme_string_parametr1 = NULL;
33     priv->osso = osso_initialize("org.maemo.livewp", VERSION, TRUE, NULL);
34     /* Load config */
35     read_config(priv);
36     /* Initialize DBUS */
37     livewp_initialize_dbus(priv);
38
39
40     lw_main_settings(priv, data);
41     return OSSO_OK;
42
43 }
44
45 osso_return_t 
46 save_state(osso_context_t *osso, gpointer data)
47 {
48                 /* ... save state ... */
49                 fprintf(stderr,"SAVE state\n");
50                 return OSSO_OK;
51 }
52