fixed time to change image, added icons to slideshow and flash, added change image...
[livewp] / applet / src / livewp-scene.c
index c1184c0..2113f9b 100644 (file)
@@ -395,7 +395,8 @@ init_scene_Slideshow(AWallpaperPlugin *desktop_plugin)
        GSList *store = NULL;
        gint num = 0;
 
-       fprintf(stderr, "init scene Slideshow %d %s\n", desktop_plugin->priv->theme_int_parametr1, desktop_plugin->priv->theme_string_parametr1);
+       fprintf(stderr, "init scene Slideshow %d %s\n", desktop_plugin->priv->theme_int_parametr1, 
+                desktop_plugin->priv->theme_string_parametr1);
 
        scene = g_new0(Scene, 1);
        scene->actors = NULL;
@@ -417,7 +418,6 @@ init_scene_Slideshow(AWallpaperPlugin *desktop_plugin)
                        if(dp->d_type == DT_REG || dp->d_type == DT_LNK){
                                str = g_strdup_printf("%s/%s", desktop_plugin->priv->theme_string_parametr1, dp->d_name);
                                store = g_slist_append(store, str);
-                               fprintf(stderr, "%s\n", str);
                                num++;
                        }
                }
@@ -426,22 +426,20 @@ init_scene_Slideshow(AWallpaperPlugin *desktop_plugin)
 
        child = g_ptr_array_sized_new(num);
        while (store){
-               fprintf(stderr, "file=%s\n", store->data);
-
                actor = init_object(desktop_plugin, "original", store->data,
                                0, 0, 5, 800, 480,
-                               FALSE, FALSE, 100, 255,
+                               FALSE, FALSE, 100, 0,
                                NULL, NULL, NULL);
                scene->actors = g_slist_append(scene->actors, actor);
                g_ptr_array_add(child, actor);
                store = g_slist_next(store);
        }
        actor = init_object(desktop_plugin, "images", "",
-                       0, 0, 5, 800, 480,
+                       0, 0, -1, 800, 480,
                        FALSE, FALSE, num, -1,
                        (gpointer)&change_slideshow, NULL, child);
        actor->time_start_animation = now;
-       actor->duration_animation = G_MAXINT;
+       actor->duration_animation = 5;
        scene->actors = g_slist_append(scene->actors, actor);
        desktop_plugin->priv->rich_animation = TRUE;
        run_long_timeout(desktop_plugin);