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));
50 /*******************************************************************************/
52 reload_scene(AWallpaperPlugin *desktop_plugin)
54 fprintf(stderr,"Reload scene %s\n", desktop_plugin->priv->theme);
55 destroy_scene(desktop_plugin);
56 init_scene_theme(desktop_plugin);
58 /*******************************************************************************/
60 init_scene_Accel(AWallpaperPlugin *desktop_plugin)
65 gint now = time(NULL);
67 gint sizes[4] = {170, 229, 130, 150},
68 sizes1[4] = {57, 76, 43, 50},
69 heights[4] = {0, 100, 200, 300},
72 fprintf(stderr, "init scene accel\n");
73 scene = g_new0(Scene, 1);
75 desktop_plugin->priv->scene = scene;
77 actor = init_object(desktop_plugin, "background", "bg.png",
81 scene->actors = g_slist_append(scene->actors, actor);
83 child = g_ptr_array_sized_new(16);
87 //for (i=0; i<3; i++){
88 str = g_strdup_printf("tape%i.png", n+1);
89 actor = init_object(desktop_plugin, "tape", str,
90 fast_rnd(800), fast_rnd(480), 2+fast_rnd(6), 800, sizes1[n],
93 scene->actors = g_slist_append(scene->actors, actor);
94 g_ptr_array_add(child, actor);
99 actor = init_object(desktop_plugin, "tape", "",
101 FALSE, FALSE, 100, 255,
102 (gpointer)&change_tape, NULL, child);
103 actor->time_start_animation = now;
104 actor->duration_animation = G_MAXINT;
105 scene->actors = g_slist_append(scene->actors, actor);
107 run_long_timeout(desktop_plugin);
109 /*******************************************************************************/
111 parsestring(char *line, char **argv)
113 while (*line != '\0') {
114 while (*line == ' ' || *line == '\n')
115 *line++ = '\0'; /* replace white spaces with 0 */
116 *argv++ = line; /* save the argument position */
117 while (*line != '\0' && *line != ' ' &&
119 line++; /* skip the argument until ... */
121 *argv = '\0'; /* mark the end of argument list */
126 sync_handler(GstBus *bus, GstMessage *message, AWallpaperPlugin *desktop_plugin){
128 if (!desktop_plugin->priv->visible)
129 gst_element_set_state (desktop_plugin->priv->pipeline, GST_STATE_PAUSED);
130 if (GST_MESSAGE_TYPE(message) != GST_MESSAGE_ELEMENT){
131 return (GST_BUS_PASS);
133 if (!gst_structure_has_name(message->structure, "prepare-xwindow-id")){
134 return (GST_BUS_PASS);
136 return (GST_BUS_DROP);
140 /*******************************************************************************/
142 bus_call (GstBus *bus, GstMessage *msg, AWallpaperPlugin *desktop_plugin)
144 switch (GST_MESSAGE_TYPE (msg))
146 case GST_MESSAGE_EOS:
147 if (desktop_plugin->priv->rich_animation){
149 GstClockTime nach = (GstClockTime)(0 * GST_MSECOND);
150 if (!gst_element_seek(desktop_plugin->priv->pipeline, 1.0, GST_FORMAT_TIME,
151 (GstSeekFlags) (GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT), GST_SEEK_TYPE_SET,
152 nach, GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE))
153 fprintf(stderr,"ERROR in seek\n");
155 gst_element_set_state (desktop_plugin->priv->pipeline, GST_STATE_PLAYING);
158 if (desktop_plugin->priv->pipeline){
159 gst_element_set_state (desktop_plugin->priv->pipeline, GST_STATE_NULL);
160 gst_object_unref (GST_OBJECT (desktop_plugin->priv->pipeline));
164 case GST_MESSAGE_ERROR: break;
169 /*******************************************************************************/
171 init_scene_Xsnow(AWallpaperPlugin *desktop_plugin){
172 fprintf(stderr,"init_scene_Xsnow\n");
173 char* child_argv[128];
174 char *run_string = NULL;
176 // fprintf(stderr, "PARAMETR %s\n", desktop_plugin->priv->theme_string_parametr1);
177 // run_string = g_strdup_printf("/usr/bin/mplayer -vo x11 -wid %d %s\n", \
178 GDK_WINDOW_XID(desktop_plugin->priv->window->window), desktop_plugin->priv->theme_string_parametr1);
179 if (!desktop_plugin->priv->visible)
181 run_string= g_strdup_printf("/usr/bin/xsnow");
182 parsestring(run_string, child_argv);
184 desktop_plugin->priv->running = TRUE;
185 desktop_plugin->priv->podpid = fork();
186 if (desktop_plugin->priv->podpid == 0){
187 execvp("/usr/bin/xsnow", child_argv);
188 fprintf(stderr,"Problem with new podprocess");
193 init_scene_Video(AWallpaperPlugin *desktop_plugin)
196 GstElement *videosink;
198 gchar *file_plus_uri;
201 desktop_plugin->priv->pipeline = gst_pipeline_new("gst-player");
202 bin = gst_element_factory_make ("playbin2", "bin");
203 videosink = gst_element_factory_make ("ximagesink", "videosink");
204 g_object_set (G_OBJECT (bin), "video-sink", videosink, NULL);
205 gst_bin_add (GST_BIN (desktop_plugin->priv->pipeline), bin);
209 bus = gst_pipeline_get_bus (GST_PIPELINE (desktop_plugin->priv->pipeline));
210 gst_bus_add_watch(bus, bus_call, desktop_plugin);
211 gst_object_unref (bus);
213 file_plus_uri = g_strdup_printf("file://%s",desktop_plugin->priv->theme_string_parametr1);
214 g_object_set (G_OBJECT (bin), "uri", file_plus_uri, NULL );
215 g_object_set (G_OBJECT (videosink), "force-aspect-ratio", TRUE, NULL );
216 if (GST_IS_X_OVERLAY (videosink))
217 gst_x_overlay_set_xwindow_id (GST_X_OVERLAY (videosink), GDK_DRAWABLE_XID(desktop_plugin->priv->window->window));
218 if (desktop_plugin->priv->visible)
219 gst_element_set_state (desktop_plugin->priv->pipeline, GST_STATE_PLAYING);
221 /*******************************************************************************/
223 init_scene_Matrix(AWallpaperPlugin *desktop_plugin)
228 gint now = time(NULL);
231 if (desktop_plugin->priv->rich_animation){
239 /* fprintf(stderr, "init scene2 \n"); */
240 scene = g_new0(Scene, 1);
241 //scene.daytime = get_daytime();
242 scene->actors = NULL;
243 desktop_plugin->priv->scene = scene;
245 actor = init_object(desktop_plugin, "background", "bg.png",
247 TRUE, TRUE, 100, 255,
249 scene->actors = g_slist_append(scene->actors, actor);
251 actor = init_object(desktop_plugin, "symbols", "symbols.png",
253 TRUE, TRUE, 100, 255,
255 scene->actors = g_slist_append(scene->actors, actor);
257 child = g_ptr_array_sized_new(4);
258 actor = init_object(desktop_plugin, "layer1", "layer1_2.png",
260 TRUE, TRUE, 100, 255,
262 //actor->time_start_animation = now;
263 //actor->duration_animation = G_MAXINT;
264 scene->actors = g_slist_append(scene->actors, actor);
265 g_ptr_array_add(child, actor);
267 actor = init_object(desktop_plugin, "layer1", "layer1_1.png",
269 TRUE, TRUE, 100, 255,
271 //actor->time_start_animation = now;
272 //actor->duration_animation = G_MAXINT;
273 scene->actors = g_slist_append(scene->actors, actor);
274 g_ptr_array_add(child, actor);
276 actor = init_object(desktop_plugin, "layer2", "layer2_2.png",
278 TRUE, TRUE, 100, 255,
280 //actor->time_start_animation = now;
281 //actor->duration_animation = G_MAXINT;
282 scene->actors = g_slist_append(scene->actors, actor);
283 g_ptr_array_add(child, actor);
285 actor = init_object(desktop_plugin, "layer2", "layer2_1.png",
287 TRUE, TRUE, 100, 255,
289 //actor->time_start_animation = now;
290 //actor->duration_animation = G_MAXINT;
291 scene->actors = g_slist_append(scene->actors, actor);
292 g_ptr_array_add(child, actor);
294 actor = init_object(desktop_plugin, "layers", "",
296 FALSE, FALSE, 100, 255,
297 (gpointer)&change_layer, NULL, child);
298 actor->time_start_animation = now;
299 actor->duration_animation = G_MAXINT;
300 scene->actors = g_slist_append(scene->actors, actor);
302 run_long_timeout(desktop_plugin);
305 /*******************************************************************************/
306 /* Init Modern Scene */
308 init_scene_Modern(AWallpaperPlugin *desktop_plugin)
312 gint now = time(NULL);
317 /* fprintf(stderr, "init scene \n"); */
318 scene = g_new0(Scene, 1);
319 scene->daytime = get_daytime();
320 scene->actors = NULL;
321 scene->wind_orientation = -1;
322 scene->wind_angle = 0.3;
323 /* init value for random */
324 scene->seed = time(NULL);
325 scene->notification = TRUE;
326 desktop_plugin->priv->scene = scene;
327 actor = init_object(desktop_plugin, "sky", "sky0.png",
329 TRUE , TRUE, 100, 255,
330 (gpointer)&change_static_actor, NULL, NULL);
331 scene->actors = g_slist_append(scene->actors, actor);
332 change_static_actor(actor, desktop_plugin);
334 actor = init_object(desktop_plugin, "sun", "sun.png",
336 FALSE, FALSE, 100, 255,
337 (gpointer)&change_sun, NULL, NULL);
338 actor->time_start_animation = now;
339 actor->duration_animation = G_MAXINT;
340 change_sun(actor, desktop_plugin);
341 scene->actors = g_slist_append(scene->actors, actor);
343 //actor = init_object(desktop_plugin, "dot", "dot1.png", 0, 0, 11, 50, 50,
344 // TRUE, 100, 255, NULL, NULL);
345 //scene.actors = g_slist_append(scene.actors, actor);
347 actor = init_object(desktop_plugin, "cloud1", "cloud1.png",
348 0, fast_rnd(300)-97, 7, 150, 97,
349 FALSE, FALSE, 100, 255,
350 (gpointer)&change_cloud, NULL, NULL);
351 actor->time_start_animation = now + fast_rnd(20);
352 actor->duration_animation = 3*60;
353 scene->actors = g_slist_append(scene->actors, actor);
355 actor = init_object(desktop_plugin, "cloud2", "cloud2.png",
356 0, fast_rnd(300)-75, 7, 188, 75,
357 FALSE, FALSE, 100, 255,
358 (gpointer)&change_cloud, NULL, NULL);
359 actor->time_start_animation = now + fast_rnd(40)+10;
360 actor->duration_animation = 3*60;
361 scene->actors = g_slist_append(scene->actors, actor);
363 actor = init_object(desktop_plugin, "cloud4", "cloud4.png",
364 0, fast_rnd(300)-75, 7, 150, 75,
365 FALSE, FALSE, 100, 255,
366 (gpointer)&change_cloud, NULL, NULL);
367 actor->time_start_animation = now + fast_rnd(60) + 20;
368 actor->duration_animation = 5*60;
369 scene->actors = g_slist_append(scene->actors, actor);
372 actor = init_object(desktop_plugin, "town", "town0.png",
374 TRUE, TRUE, 100, 255,
375 (gpointer)&change_static_actor, NULL, NULL);
376 change_static_actor(actor, desktop_plugin);
377 scene->actors = g_slist_append(scene->actors, actor);
379 actor = init_object(desktop_plugin, "stend", "stend0.png",
380 452, 166, 9, 300, 305,
381 TRUE, TRUE, 100, 255,
382 (gpointer)&change_static_actor, NULL, NULL);
383 change_static_actor(actor, desktop_plugin);
384 scene->actors = g_slist_append(scene->actors, actor);
387 child = g_ptr_array_sized_new(4);
388 actor = init_object(desktop_plugin, "call", "call.png",
390 FALSE, TRUE, 100, 255,
392 scene->actors = g_slist_append(scene->actors, actor);
393 g_ptr_array_add(child, actor);
395 actor = init_object(desktop_plugin, "chat", "chat.png",
397 FALSE, TRUE, 100, 255,
399 scene->actors = g_slist_append(scene->actors, actor);
400 g_ptr_array_add(child, actor);
402 actor = init_object(desktop_plugin, "mail", "mail.png",
404 FALSE, TRUE, 100, 255,
406 scene->actors = g_slist_append(scene->actors, actor);
407 g_ptr_array_add(child, actor);
409 actor = init_object(desktop_plugin, "sms", "sms.png",
411 FALSE, TRUE, 100, 255,
413 scene->actors = g_slist_append(scene->actors, actor);
414 g_ptr_array_add(child, actor);
416 actor = init_object(desktop_plugin, "billboard_text", "",
417 470, 174, 9, 300, 108,
418 FALSE, FALSE, 100, 255,
419 (gpointer)&change_billboard, NULL, child);
420 create_hildon_actor_text(actor, desktop_plugin);
421 //actor->time_start_animation = time(NULL) + 20;
422 change_billboard(actor, desktop_plugin);
423 scene->actors = g_slist_append(scene->actors, actor);
425 actor = init_object(desktop_plugin, "tram", "tram.png",
426 -300, 225, 10, 350, 210,
427 FALSE, FALSE, 100, 255,
428 (gpointer)&change_tram, NULL, NULL);
429 actor->time_start_animation = time(NULL) + fast_rnd(10);
430 actor->duration_animation = 60;
431 scene->actors = g_slist_append(scene->actors, actor);
433 actor = init_object(desktop_plugin, "border", "border0.png",
434 0, 480-79, 11, 800, 79,
435 TRUE, TRUE, 100, 255,
436 (gpointer)&change_static_actor_with_corner, NULL, NULL);
437 change_static_actor_with_corner(actor, desktop_plugin);
438 scene->actors = g_slist_append(scene->actors, actor);
440 actor = init_object(desktop_plugin, "moon", "moon1.png",
442 FALSE, FALSE, 100, 255,
443 (gpointer)&change_moon, NULL, NULL);
444 change_moon(actor, desktop_plugin);
445 scene->actors = g_slist_append(scene->actors, actor);
447 actor = init_object(desktop_plugin, "wind", "",
449 FALSE, FALSE, 100, 255,
450 (gpointer)&change_wind, NULL, NULL);
451 change_wind(actor, desktop_plugin);
452 scene->actors = g_slist_append(scene->actors, actor);
454 /* windows in 4-th house */
494 for (i=0; i<13; i++){
495 actor = init_object(desktop_plugin, "window1", "window1.png",
496 winds[i][0], winds[i][1], 8, 8, 10,
497 FALSE, FALSE, 100, 255,
498 (gpointer)&change_window1, NULL, NULL);
499 //change_window1(actor, desktop_plugin);
500 actor->time_start_animation = now + fast_rnd(30);
501 scene->actors = g_slist_append(scene->actors, actor);
505 /* windows in 1-th house */
531 actor = init_object(desktop_plugin, "window2", "window2.png",
532 winds[i][0], winds[i][1], 8, 8, 10,
533 FALSE, FALSE, 100, 255,
534 (gpointer)&change_window1, NULL, NULL);
535 //change_window1(actor, desktop_plugin);
536 actor->time_start_animation = now + fast_rnd(30);
537 scene->actors = g_slist_append(scene->actors, actor);
541 /* windows in 3-th house */
573 for (i=0; i<10; i++){
574 actor = init_object(desktop_plugin, "window3", "window3.png",
575 winds[i][0], winds[i][1], 8, 8, 10,
576 FALSE, FALSE, 100, 255,
577 (gpointer)&change_window1, NULL, NULL);
578 //change_window1(actor, desktop_plugin);
579 actor->time_start_animation = now + fast_rnd(30);
580 scene->actors = g_slist_append(scene->actors, actor);
584 /* windows in 5-th house */
608 actor = init_object(desktop_plugin, "window4", "window4.png",
609 winds[i][0], winds[i][1], 8, 8, 10,
610 FALSE, FALSE, 100, 255,
611 (gpointer)&change_window1, NULL, NULL);
612 //change_window1(actor, desktop_plugin);
613 actor->time_start_animation = now + fast_rnd(30);
614 scene->actors = g_slist_append(scene->actors, actor);
618 /* windows in 6-th house */
639 actor = init_object(desktop_plugin, "window5", "window5.png",
640 winds[i][0], winds[i][1], 8, 8, 10,
641 FALSE, FALSE, 100, 255,
642 (gpointer)&change_window1, NULL, NULL);
643 //change_window1(actor, desktop_plugin);
644 actor->time_start_animation = now + fast_rnd(30);
645 scene->actors = g_slist_append(scene->actors, actor);
648 run_long_timeout(desktop_plugin);
651 anim = g_new0(Animation, 1);
654 anim->func_change = &change_tram;
655 anim->func_time = NULL;
656 anim->timestart = time(NULL);
659 scene.dynamic_actors = g_slist_append(scene.dynamic_actors, anim);
662 /*******************************************************************************/
663 /* Init Berlin Scene */
665 init_scene_Berlin(AWallpaperPlugin *desktop_plugin)
667 Actor *actor, *actor1, *actor2;
669 gint now = time(NULL);
672 GPtrArray *child = NULL;
674 scene = g_new0(Scene, 1);
675 scene->daytime = get_daytime();
676 scene->actors = NULL;
677 scene->wind_orientation = -1;
678 scene->wind_angle = 0.3;
679 /* init value for random */
680 scene->seed = time(NULL);
681 desktop_plugin->priv->scene = scene;
683 actor = init_object(desktop_plugin, "sky", "sky.png", 0, 0, 5, 800, 480,
684 TRUE, TRUE, 100, 255,
685 (gpointer)&change_static_actor, NULL, NULL);
686 change_static_actor(actor, desktop_plugin);
687 scene->actors = g_slist_append(scene->actors, actor);
690 actor = init_object(desktop_plugin, "sun", "sun.png", 0, 0, 6, 88, 88,
691 FALSE, FALSE, 100, 255,
692 (gpointer)&change_sun, NULL, NULL);
693 actor->time_start_animation = time(NULL);
694 actor->duration_animation = G_MAXINT;
695 change_sun(actor, desktop_plugin);
696 scene->actors = g_slist_append(scene->actors, actor);
699 actor = init_object(desktop_plugin, "dot", "dot1.png", 0, 0, 11, 50, 50,
700 TRUE, 100, 255, NULL, NULL);
701 scene.actors = g_slist_append(scene.actors, actor);
704 actor = init_object(desktop_plugin, "moon", "moon1.png", 400, 15, 6, 60, 60,
705 FALSE, FALSE, 100, 255,
706 (gpointer)&change_moon, NULL, NULL);
707 change_moon(actor, desktop_plugin);
708 scene->actors = g_slist_append(scene->actors, actor);
710 actor = init_object(desktop_plugin, "cloud1", "cloud1.png", 0, fast_rnd(300)-97, 7, 150, 97,
711 FALSE, FALSE, 100, 255,
712 (gpointer)&change_cloud, NULL, NULL);
713 actor->time_start_animation = now + fast_rnd(30) + 10;
714 actor->duration_animation = 3*60;
715 scene->actors = g_slist_append(scene->actors, actor);
717 actor = init_object(desktop_plugin, "cloud2", "cloud2.png", 0, fast_rnd(300)-75, 7, 188, 75,
718 FALSE, FALSE, 100, 255,
719 (gpointer)&change_cloud, NULL, NULL);
720 actor->time_start_animation = now + fast_rnd(10);
721 actor->duration_animation = 3*60;
722 scene->actors = g_slist_append(scene->actors, actor);
724 actor = init_object(desktop_plugin, "cloud4", "cloud4.png", 0, fast_rnd(300)-75, 7, 150, 75,
725 FALSE, FALSE, 100, 255,
726 (gpointer)&change_cloud, NULL, NULL);
727 actor->time_start_animation = now + fast_rnd(60) + 20;
728 actor->duration_animation = 5*60;
729 scene->actors = g_slist_append(scene->actors, actor);
732 actor = init_object(desktop_plugin, "plane2", "plane3.png", 0, 45, 8, 160, 50,
733 FALSE, FALSE, 100, 255,
734 (gpointer)&change_plane2, NULL, NULL);
735 actor->time_start_animation = now + fast_rnd(40) + 20;
736 actor->duration_animation = 60;
737 scene->actors = g_slist_append(scene->actors, actor);
739 actor = init_object(desktop_plugin, "plane1", "tu154.png", 620, 233, 9, 300, 116,
740 FALSE, FALSE, 100, 255,
741 (gpointer)&change_plane1, NULL, NULL);
742 actor->time_start_animation = now + fast_rnd(20);
743 actor->duration_animation = 30;
744 scene->actors = g_slist_append(scene->actors, actor);
746 actor = init_object(desktop_plugin, "town", "town.png", 0, 0, 10, 800, 480,
747 TRUE, TRUE, 100, 255,
748 (gpointer)&change_static_actor_with_corner, NULL, NULL);
749 change_static_actor_with_corner(actor, desktop_plugin);
750 scene->actors = g_slist_append(scene->actors, actor);
752 actor = init_object(desktop_plugin, "wind", "", 0, 0, 5, 0, 0,
753 FALSE, FALSE, 100, 255,
754 (gpointer)&change_wind, NULL, NULL);
755 change_wind(actor, desktop_plugin);
756 scene->actors = g_slist_append(scene->actors, actor);
758 actor1 = init_object(desktop_plugin, "signal_red", "red.png",
759 486, 425, 10, 18, 38,
760 FALSE, TRUE, 100, 255, NULL, NULL, NULL);
761 //actor->time_start_animation = now + fast_rnd(30) + 10;
762 scene->actors = g_slist_append(scene->actors, actor1);
764 actor2 = init_object(desktop_plugin, "signal_green", "green.png",
765 486, 425, 10, 18, 38,
766 TRUE, TRUE, 100, 255, NULL, NULL, NULL);
767 //actor->time_start_animation = now + fast_rnd(30) + 10;
768 scene->actors = g_slist_append(scene->actors, actor2);
769 child = g_ptr_array_sized_new(2);
770 g_ptr_array_add(child, actor1);
771 g_ptr_array_add(child, actor2);
772 actor = init_object(desktop_plugin, "signal", "",
773 486, 425, 10, 18, 38,
774 FALSE, FALSE, 100, 255,
775 (gpointer)&change_signal, NULL, child);
776 actor->time_start_animation = now + fast_rnd(30) + 10;
777 scene->actors = g_slist_append(scene->actors, actor);
818 for (i=0; i<13; i++){
819 actor = init_object(desktop_plugin, "window", "window.png",
820 winds[i][0], winds[i][1], 10, 8, 9,
821 FALSE, TRUE, 100, 255,
822 (gpointer)&change_window1, NULL, NULL);
823 //change_window1(actor, desktop_plugin);
824 actor->time_start_animation = now + fast_rnd(30);
825 scene->actors = g_slist_append(scene->actors, actor);
829 run_long_timeout(desktop_plugin);
832 /*******************************************************************************/
834 init_scene_theme(AWallpaperPlugin *desktop_plugin)
836 void (*func)(gpointer);
837 func = g_hash_table_lookup(desktop_plugin->priv->hash_scene_func, desktop_plugin->priv->theme);
839 (*func)(desktop_plugin);