flash works
[livewp] / applet / src / livewp-flash.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-flash.h"
26 void 
27 init_scene_Flash(AWallpaperPlugin *desktop_plugin){
28     init_scene_External(desktop_plugin);
29 }
30 void
31 flash_visible(AWallpaperPlugin *desktop_plugin){
32     fprintf(stderr,"Flash visible\n");
33     if (desktop_plugin->priv->visible)
34         kill (desktop_plugin->priv->podpid, SIGCONT);
35     else
36         kill (desktop_plugin->priv->podpid, SIGSTOP);
37 }