1 /* vim: set sw=4 ts=4 et: */
3 * This file is part of Live Wallpaper (livewp)
5 * Copyright (C) 2010 Vlad Vasiliev
6 * Copyright (C) 2010 Tanya Makova
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.
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.
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
24 /*******************************************************************************/
25 #include "livewp-scene.h"
28 destroy_scene(AWallpaperPlugin *desktop_plugin)
30 if (desktop_plugin->priv->scene){
31 GSList * tmp = desktop_plugin->priv->scene->actors;
33 destroy_actor(tmp->data);
34 tmp = g_slist_next(tmp);
38 desktop_plugin->priv->scene->actors = NULL;
39 if (desktop_plugin->priv->scene){
40 g_free(desktop_plugin->priv->scene);
41 desktop_plugin->priv->scene = NULL;
44 if (desktop_plugin->priv->pipeline){
45 gst_element_set_state (desktop_plugin->priv->pipeline, GST_STATE_NULL);
46 gst_object_unref (GST_OBJECT (desktop_plugin->priv->pipeline));
49 if (desktop_plugin->priv->podpid > 1){
50 kill (desktop_plugin->priv->podpid, SIGTERM);
51 desktop_plugin->priv->podpid = -1;
54 /*******************************************************************************/
56 reload_scene(AWallpaperPlugin *desktop_plugin)
58 fprintf(stderr,"Reload scene %s\n", desktop_plugin->priv->theme);
59 destroy_scene(desktop_plugin);
60 init_scene_theme(desktop_plugin);
62 /*******************************************************************************/
64 init_scene_Accel(AWallpaperPlugin *desktop_plugin)
69 gint now = time(NULL);
71 gint sizes[4] = {170, 229, 130, 150},
72 sizes1[4] = {57, 76, 43, 50},
73 heights[4] = {0, 100, 200, 300},
76 fprintf(stderr, "init scene accel\n");
77 scene = g_new0(Scene, 1);
79 desktop_plugin->priv->scene = scene;
81 actor = init_object(desktop_plugin, "background", "bg.png",
85 scene->actors = g_slist_append(scene->actors, actor);
87 child = g_ptr_array_sized_new(16);
91 //for (i=0; i<3; i++){
92 str = g_strdup_printf("tape%i.png", n+1);
93 actor = init_object(desktop_plugin, "tape", str,
94 fast_rnd(800), fast_rnd(480), 2+fast_rnd(6), 800, sizes1[n],
97 scene->actors = g_slist_append(scene->actors, actor);
98 g_ptr_array_add(child, actor);
103 actor = init_object(desktop_plugin, "tape", "",
105 FALSE, FALSE, 100, 255,
106 (gpointer)&change_tape, NULL, child);
107 actor->time_start_animation = now;
108 actor->duration_animation = G_MAXINT;
109 scene->actors = g_slist_append(scene->actors, actor);
111 run_long_timeout(desktop_plugin);
113 /*******************************************************************************/
115 parsestring(char *line, char **argv)
117 while (*line != '\0') {
118 while (*line == ' ' || *line == '\n')
119 *line++ = '\0'; /* replace white spaces with 0 */
120 *argv++ = line; /* save the argument position */
121 while (*line != '\0' && *line != ' ' &&
123 line++; /* skip the argument until ... */
125 *argv = '\0'; /* mark the end of argument list */
130 sync_handler(GstBus *bus, GstMessage *message, AWallpaperPlugin *desktop_plugin){
132 if (!desktop_plugin->priv->visible)
133 gst_element_set_state (desktop_plugin->priv->pipeline, GST_STATE_PAUSED);
134 if (GST_MESSAGE_TYPE(message) != GST_MESSAGE_ELEMENT){
135 return (GST_BUS_PASS);
137 if (!gst_structure_has_name(message->structure, "prepare-xwindow-id")){
138 return (GST_BUS_PASS);
140 return (GST_BUS_DROP);
144 /*******************************************************************************/
146 bus_call (GstBus *bus, GstMessage *msg, AWallpaperPlugin *desktop_plugin)
148 switch (GST_MESSAGE_TYPE (msg))
150 case GST_MESSAGE_EOS:
151 if (desktop_plugin->priv->rich_animation){
153 GstClockTime nach = (GstClockTime)(0 * GST_MSECOND);
154 if (!gst_element_seek(desktop_plugin->priv->pipeline, 1.0, GST_FORMAT_TIME,
155 (GstSeekFlags) (GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT), GST_SEEK_TYPE_SET,
156 nach, GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE))
157 fprintf(stderr,"ERROR in seek\n");
159 gst_element_set_state (desktop_plugin->priv->pipeline, GST_STATE_PLAYING);
162 if (desktop_plugin->priv->pipeline){
163 gst_element_set_state (desktop_plugin->priv->pipeline, GST_STATE_NULL);
164 gst_object_unref (GST_OBJECT (desktop_plugin->priv->pipeline));
168 case GST_MESSAGE_ERROR: break;
173 /*******************************************************************************/
175 init_scene_Xsnow(AWallpaperPlugin *desktop_plugin){
176 fprintf(stderr,"init_scene_Xsnow\n");
177 char* child_argv[128];
178 char *run_string = NULL;
180 // fprintf(stderr, "PARAMETR %s\n", desktop_plugin->priv->theme_string_parametr1);
181 // run_string = g_strdup_printf("/usr/bin/mplayer -vo x11 -wid %d %s\n", \
182 GDK_WINDOW_XID(desktop_plugin->priv->window->window), desktop_plugin->priv->theme_string_parametr1);
183 if (!desktop_plugin->priv->visible)
185 run_string= g_strdup_printf("/usr/bin/xsnow");
186 parsestring(run_string, child_argv);
188 desktop_plugin->priv->running = TRUE;
189 desktop_plugin->priv->podpid = fork();
190 if (desktop_plugin->priv->podpid == 0){
191 execvp("/usr/bin/xsnow", child_argv);
192 fprintf(stderr,"Problem with new podprocess");
197 init_scene_Video(AWallpaperPlugin *desktop_plugin)
200 GstElement *videosink;
202 gchar *file_plus_uri;
205 desktop_plugin->priv->pipeline = gst_pipeline_new("gst-player");
206 bin = gst_element_factory_make ("playbin2", "bin");
207 videosink = gst_element_factory_make ("ximagesink", "videosink");
208 g_object_set (G_OBJECT (bin), "video-sink", videosink, NULL);
209 gst_bin_add (GST_BIN (desktop_plugin->priv->pipeline), bin);
213 bus = gst_pipeline_get_bus (GST_PIPELINE (desktop_plugin->priv->pipeline));
214 gst_bus_add_watch(bus, bus_call, desktop_plugin);
215 gst_object_unref (bus);
217 file_plus_uri = g_strdup_printf("file://%s",desktop_plugin->priv->theme_string_parametr1);
218 g_object_set (G_OBJECT (bin), "uri", file_plus_uri, NULL );
219 g_object_set (G_OBJECT (videosink), "force-aspect-ratio", TRUE, NULL );
220 if (GST_IS_X_OVERLAY (videosink))
221 gst_x_overlay_set_xwindow_id (GST_X_OVERLAY (videosink), GDK_DRAWABLE_XID(desktop_plugin->priv->window->window));
222 if (desktop_plugin->priv->visible)
223 gst_element_set_state (desktop_plugin->priv->pipeline, GST_STATE_PLAYING);
225 /*******************************************************************************/
227 init_scene_Matrix(AWallpaperPlugin *desktop_plugin)
232 gint now = time(NULL);
235 if (desktop_plugin->priv->rich_animation){
243 /* fprintf(stderr, "init scene2 \n"); */
244 scene = g_new0(Scene, 1);
245 //scene.daytime = get_daytime();
246 scene->actors = NULL;
247 desktop_plugin->priv->scene = scene;
249 actor = init_object(desktop_plugin, "background", "bg.png",
251 TRUE, TRUE, 100, 255,
253 scene->actors = g_slist_append(scene->actors, actor);
255 actor = init_object(desktop_plugin, "symbols", "symbols.png",
257 TRUE, TRUE, 100, 255,
259 scene->actors = g_slist_append(scene->actors, actor);
261 child = g_ptr_array_sized_new(4);
262 actor = init_object(desktop_plugin, "layer1", "layer1_2.png",
264 TRUE, TRUE, 100, 255,
266 //actor->time_start_animation = now;
267 //actor->duration_animation = G_MAXINT;
268 scene->actors = g_slist_append(scene->actors, actor);
269 g_ptr_array_add(child, actor);
271 actor = init_object(desktop_plugin, "layer1", "layer1_1.png",
273 TRUE, TRUE, 100, 255,
275 //actor->time_start_animation = now;
276 //actor->duration_animation = G_MAXINT;
277 scene->actors = g_slist_append(scene->actors, actor);
278 g_ptr_array_add(child, actor);
280 actor = init_object(desktop_plugin, "layer2", "layer2_2.png",
282 TRUE, TRUE, 100, 255,
284 //actor->time_start_animation = now;
285 //actor->duration_animation = G_MAXINT;
286 scene->actors = g_slist_append(scene->actors, actor);
287 g_ptr_array_add(child, actor);
289 actor = init_object(desktop_plugin, "layer2", "layer2_1.png",
291 TRUE, TRUE, 100, 255,
293 //actor->time_start_animation = now;
294 //actor->duration_animation = G_MAXINT;
295 scene->actors = g_slist_append(scene->actors, actor);
296 g_ptr_array_add(child, actor);
298 actor = init_object(desktop_plugin, "layers", "",
300 FALSE, FALSE, 100, 255,
301 (gpointer)&change_layer, NULL, child);
302 actor->time_start_animation = now;
303 actor->duration_animation = G_MAXINT;
304 scene->actors = g_slist_append(scene->actors, actor);
306 run_long_timeout(desktop_plugin);
309 /*******************************************************************************/
310 /* Init Modern Scene */
312 init_scene_Modern(AWallpaperPlugin *desktop_plugin)
316 gint now = time(NULL);
321 /* fprintf(stderr, "init scene \n"); */
322 scene = g_new0(Scene, 1);
323 scene->daytime = get_daytime();
324 scene->actors = NULL;
325 scene->wind_orientation = -1;
326 scene->wind_angle = 0.3;
327 /* init value for random */
328 scene->seed = time(NULL);
329 scene->notification = TRUE;
330 desktop_plugin->priv->scene = scene;
331 actor = init_object(desktop_plugin, "sky", "sky0.png",
333 TRUE , TRUE, 100, 255,
334 (gpointer)&change_static_actor, NULL, NULL);
335 scene->actors = g_slist_append(scene->actors, actor);
336 change_static_actor(actor, desktop_plugin);
338 actor = init_object(desktop_plugin, "sun", "sun.png",
340 FALSE, FALSE, 100, 255,
341 (gpointer)&change_sun, NULL, NULL);
342 actor->time_start_animation = now;
343 actor->duration_animation = G_MAXINT;
344 change_sun(actor, desktop_plugin);
345 scene->actors = g_slist_append(scene->actors, actor);
347 //actor = init_object(desktop_plugin, "dot", "dot1.png", 0, 0, 11, 50, 50,
348 // TRUE, 100, 255, NULL, NULL);
349 //scene.actors = g_slist_append(scene.actors, actor);
351 actor = init_object(desktop_plugin, "cloud1", "cloud1.png",
352 0, fast_rnd(300)-97, 7, 150, 97,
353 FALSE, FALSE, 100, 255,
354 (gpointer)&change_cloud, NULL, NULL);
355 actor->time_start_animation = now + fast_rnd(20);
356 actor->duration_animation = 3*60;
357 scene->actors = g_slist_append(scene->actors, actor);
359 actor = init_object(desktop_plugin, "cloud2", "cloud2.png",
360 0, fast_rnd(300)-75, 7, 188, 75,
361 FALSE, FALSE, 100, 255,
362 (gpointer)&change_cloud, NULL, NULL);
363 actor->time_start_animation = now + fast_rnd(40)+10;
364 actor->duration_animation = 3*60;
365 scene->actors = g_slist_append(scene->actors, actor);
367 actor = init_object(desktop_plugin, "cloud4", "cloud4.png",
368 0, fast_rnd(300)-75, 7, 150, 75,
369 FALSE, FALSE, 100, 255,
370 (gpointer)&change_cloud, NULL, NULL);
371 actor->time_start_animation = now + fast_rnd(60) + 20;
372 actor->duration_animation = 5*60;
373 scene->actors = g_slist_append(scene->actors, actor);
376 actor = init_object(desktop_plugin, "town", "town0.png",
378 TRUE, TRUE, 100, 255,
379 (gpointer)&change_static_actor, NULL, NULL);
380 change_static_actor(actor, desktop_plugin);
381 scene->actors = g_slist_append(scene->actors, actor);
383 actor = init_object(desktop_plugin, "stend", "stend0.png",
384 452, 166, 9, 300, 305,
385 TRUE, TRUE, 100, 255,
386 (gpointer)&change_static_actor, NULL, NULL);
387 change_static_actor(actor, desktop_plugin);
388 scene->actors = g_slist_append(scene->actors, actor);
391 child = g_ptr_array_sized_new(4);
392 actor = init_object(desktop_plugin, "call", "call.png",
394 FALSE, TRUE, 100, 255,
396 scene->actors = g_slist_append(scene->actors, actor);
397 g_ptr_array_add(child, actor);
399 actor = init_object(desktop_plugin, "chat", "chat.png",
401 FALSE, TRUE, 100, 255,
403 scene->actors = g_slist_append(scene->actors, actor);
404 g_ptr_array_add(child, actor);
406 actor = init_object(desktop_plugin, "mail", "mail.png",
408 FALSE, TRUE, 100, 255,
410 scene->actors = g_slist_append(scene->actors, actor);
411 g_ptr_array_add(child, actor);
413 actor = init_object(desktop_plugin, "sms", "sms.png",
415 FALSE, TRUE, 100, 255,
417 scene->actors = g_slist_append(scene->actors, actor);
418 g_ptr_array_add(child, actor);
420 actor = init_object(desktop_plugin, "billboard_text", "",
421 470, 174, 9, 300, 108,
422 FALSE, FALSE, 100, 255,
423 (gpointer)&change_billboard, NULL, child);
424 create_hildon_actor_text(actor, desktop_plugin);
425 //actor->time_start_animation = time(NULL) + 20;
426 change_billboard(actor, desktop_plugin);
427 scene->actors = g_slist_append(scene->actors, actor);
429 actor = init_object(desktop_plugin, "tram", "tram.png",
430 -300, 225, 10, 350, 210,
431 FALSE, FALSE, 100, 255,
432 (gpointer)&change_tram, NULL, NULL);
433 actor->time_start_animation = time(NULL) + fast_rnd(10);
434 actor->duration_animation = 60;
435 scene->actors = g_slist_append(scene->actors, actor);
437 actor = init_object(desktop_plugin, "border", "border0.png",
438 0, 480-79, 11, 800, 79,
439 TRUE, TRUE, 100, 255,
440 (gpointer)&change_static_actor_with_corner, NULL, NULL);
441 change_static_actor_with_corner(actor, desktop_plugin);
442 scene->actors = g_slist_append(scene->actors, actor);
444 actor = init_object(desktop_plugin, "moon", "moon1.png",
446 FALSE, FALSE, 100, 255,
447 (gpointer)&change_moon, NULL, NULL);
448 change_moon(actor, desktop_plugin);
449 scene->actors = g_slist_append(scene->actors, actor);
451 actor = init_object(desktop_plugin, "wind", "",
453 FALSE, FALSE, 100, 255,
454 (gpointer)&change_wind, NULL, NULL);
455 change_wind(actor, desktop_plugin);
456 scene->actors = g_slist_append(scene->actors, actor);
458 /* windows in 4-th house */
498 for (i=0; i<13; i++){
499 actor = init_object(desktop_plugin, "window1", "window1.png",
500 winds[i][0], winds[i][1], 8, 8, 10,
501 FALSE, FALSE, 100, 255,
502 (gpointer)&change_window1, NULL, NULL);
503 //change_window1(actor, desktop_plugin);
504 actor->time_start_animation = now + fast_rnd(30);
505 scene->actors = g_slist_append(scene->actors, actor);
509 /* windows in 1-th house */
535 actor = init_object(desktop_plugin, "window2", "window2.png",
536 winds[i][0], winds[i][1], 8, 8, 10,
537 FALSE, FALSE, 100, 255,
538 (gpointer)&change_window1, NULL, NULL);
539 //change_window1(actor, desktop_plugin);
540 actor->time_start_animation = now + fast_rnd(30);
541 scene->actors = g_slist_append(scene->actors, actor);
545 /* windows in 3-th house */
577 for (i=0; i<10; i++){
578 actor = init_object(desktop_plugin, "window3", "window3.png",
579 winds[i][0], winds[i][1], 8, 8, 10,
580 FALSE, FALSE, 100, 255,
581 (gpointer)&change_window1, NULL, NULL);
582 //change_window1(actor, desktop_plugin);
583 actor->time_start_animation = now + fast_rnd(30);
584 scene->actors = g_slist_append(scene->actors, actor);
588 /* windows in 5-th house */
612 actor = init_object(desktop_plugin, "window4", "window4.png",
613 winds[i][0], winds[i][1], 8, 8, 10,
614 FALSE, FALSE, 100, 255,
615 (gpointer)&change_window1, NULL, NULL);
616 //change_window1(actor, desktop_plugin);
617 actor->time_start_animation = now + fast_rnd(30);
618 scene->actors = g_slist_append(scene->actors, actor);
622 /* windows in 6-th house */
643 actor = init_object(desktop_plugin, "window5", "window5.png",
644 winds[i][0], winds[i][1], 8, 8, 10,
645 FALSE, FALSE, 100, 255,
646 (gpointer)&change_window1, NULL, NULL);
647 //change_window1(actor, desktop_plugin);
648 actor->time_start_animation = now + fast_rnd(30);
649 scene->actors = g_slist_append(scene->actors, actor);
652 run_long_timeout(desktop_plugin);
655 anim = g_new0(Animation, 1);
658 anim->func_change = &change_tram;
659 anim->func_time = NULL;
660 anim->timestart = time(NULL);
663 scene.dynamic_actors = g_slist_append(scene.dynamic_actors, anim);
666 /*******************************************************************************/
667 /* Init Berlin Scene */
669 init_scene_Berlin(AWallpaperPlugin *desktop_plugin)
671 Actor *actor, *actor1, *actor2;
673 gint now = time(NULL);
676 GPtrArray *child = NULL;
678 scene = g_new0(Scene, 1);
679 scene->daytime = get_daytime();
680 scene->actors = NULL;
681 scene->wind_orientation = -1;
682 scene->wind_angle = 0.3;
683 /* init value for random */
684 scene->seed = time(NULL);
685 desktop_plugin->priv->scene = scene;
687 actor = init_object(desktop_plugin, "sky", "sky.png", 0, 0, 5, 800, 480,
688 TRUE, TRUE, 100, 255,
689 (gpointer)&change_static_actor, NULL, NULL);
690 change_static_actor(actor, desktop_plugin);
691 scene->actors = g_slist_append(scene->actors, actor);
694 actor = init_object(desktop_plugin, "sun", "sun.png", 0, 0, 6, 88, 88,
695 FALSE, FALSE, 100, 255,
696 (gpointer)&change_sun, NULL, NULL);
697 actor->time_start_animation = time(NULL);
698 actor->duration_animation = G_MAXINT;
699 change_sun(actor, desktop_plugin);
700 scene->actors = g_slist_append(scene->actors, actor);
703 actor = init_object(desktop_plugin, "dot", "dot1.png", 0, 0, 11, 50, 50,
704 TRUE, 100, 255, NULL, NULL);
705 scene.actors = g_slist_append(scene.actors, actor);
708 actor = init_object(desktop_plugin, "moon", "moon1.png", 400, 15, 6, 60, 60,
709 FALSE, FALSE, 100, 255,
710 (gpointer)&change_moon, NULL, NULL);
711 change_moon(actor, desktop_plugin);
712 scene->actors = g_slist_append(scene->actors, actor);
714 actor = init_object(desktop_plugin, "cloud1", "cloud1.png", 0, fast_rnd(300)-97, 7, 150, 97,
715 FALSE, FALSE, 100, 255,
716 (gpointer)&change_cloud, NULL, NULL);
717 actor->time_start_animation = now + fast_rnd(30) + 10;
718 actor->duration_animation = 3*60;
719 scene->actors = g_slist_append(scene->actors, actor);
721 actor = init_object(desktop_plugin, "cloud2", "cloud2.png", 0, fast_rnd(300)-75, 7, 188, 75,
722 FALSE, FALSE, 100, 255,
723 (gpointer)&change_cloud, NULL, NULL);
724 actor->time_start_animation = now + fast_rnd(10);
725 actor->duration_animation = 3*60;
726 scene->actors = g_slist_append(scene->actors, actor);
728 actor = init_object(desktop_plugin, "cloud4", "cloud4.png", 0, fast_rnd(300)-75, 7, 150, 75,
729 FALSE, FALSE, 100, 255,
730 (gpointer)&change_cloud, NULL, NULL);
731 actor->time_start_animation = now + fast_rnd(60) + 20;
732 actor->duration_animation = 5*60;
733 scene->actors = g_slist_append(scene->actors, actor);
736 actor = init_object(desktop_plugin, "plane2", "plane3.png", 0, 45, 8, 160, 50,
737 FALSE, FALSE, 100, 255,
738 (gpointer)&change_plane2, NULL, NULL);
739 actor->time_start_animation = now + fast_rnd(40) + 20;
740 actor->duration_animation = 60;
741 scene->actors = g_slist_append(scene->actors, actor);
743 actor = init_object(desktop_plugin, "plane1", "tu154.png", 620, 233, 9, 300, 116,
744 FALSE, FALSE, 100, 255,
745 (gpointer)&change_plane1, NULL, NULL);
746 actor->time_start_animation = now + fast_rnd(20);
747 actor->duration_animation = 30;
748 scene->actors = g_slist_append(scene->actors, actor);
750 actor = init_object(desktop_plugin, "town", "town.png", 0, 0, 10, 800, 480,
751 TRUE, TRUE, 100, 255,
752 (gpointer)&change_static_actor_with_corner, NULL, NULL);
753 change_static_actor_with_corner(actor, desktop_plugin);
754 scene->actors = g_slist_append(scene->actors, actor);
756 actor = init_object(desktop_plugin, "wind", "", 0, 0, 5, 0, 0,
757 FALSE, FALSE, 100, 255,
758 (gpointer)&change_wind, NULL, NULL);
759 change_wind(actor, desktop_plugin);
760 scene->actors = g_slist_append(scene->actors, actor);
762 actor1 = init_object(desktop_plugin, "signal_red", "red.png",
763 486, 425, 10, 18, 38,
764 FALSE, TRUE, 100, 255, NULL, NULL, NULL);
765 //actor->time_start_animation = now + fast_rnd(30) + 10;
766 scene->actors = g_slist_append(scene->actors, actor1);
768 actor2 = init_object(desktop_plugin, "signal_green", "green.png",
769 486, 425, 10, 18, 38,
770 TRUE, TRUE, 100, 255, NULL, NULL, NULL);
771 //actor->time_start_animation = now + fast_rnd(30) + 10;
772 scene->actors = g_slist_append(scene->actors, actor2);
773 child = g_ptr_array_sized_new(2);
774 g_ptr_array_add(child, actor1);
775 g_ptr_array_add(child, actor2);
776 actor = init_object(desktop_plugin, "signal", "",
777 486, 425, 10, 18, 38,
778 FALSE, FALSE, 100, 255,
779 (gpointer)&change_signal, NULL, child);
780 actor->time_start_animation = now + fast_rnd(30) + 10;
781 scene->actors = g_slist_append(scene->actors, actor);
822 for (i=0; i<13; i++){
823 actor = init_object(desktop_plugin, "window", "window.png",
824 winds[i][0], winds[i][1], 10, 8, 9,
825 FALSE, TRUE, 100, 255,
826 (gpointer)&change_window1, NULL, NULL);
827 //change_window1(actor, desktop_plugin);
828 actor->time_start_animation = now + fast_rnd(30);
829 scene->actors = g_slist_append(scene->actors, actor);
833 run_long_timeout(desktop_plugin);
836 /*******************************************************************************/
838 init_scene_theme(AWallpaperPlugin *desktop_plugin)
840 void (*func)(gpointer);
841 func = g_hash_table_lookup(desktop_plugin->priv->hash_scene_func, desktop_plugin->priv->theme);
843 (*func)(desktop_plugin);