init_scene_theme(desktop_plugin);
}
+
+void
+init_scene_Accel(AWallpaperPlugin *desktop_plugin)
+{
+ Actor *actor;
+ Scene *scene;
+ GPtrArray *child;
+ gint now = time(NULL);
+ gchar *str;
+ gint sizes[4] = {170, 229, 130, 150},
+ sizes1[4] = {57, 76, 43, 50},
+ heights[4] = {0, 100, 200, 300},
+ n, i, j;
+
+ fprintf(stderr, "init scene accel\n");
+ scene = g_new0(Scene, 1);
+ scene->actors = NULL;
+ desktop_plugin->priv->scene = scene;
+
+ actor = init_object(desktop_plugin, "background", "bg.png",
+ 0, 0, 0, 800, 480,
+ TRUE, TRUE, 100, 255,
+ NULL, NULL, NULL);
+ scene->actors = g_slist_append(scene->actors, actor);
+
+ child = g_ptr_array_sized_new(16);
+
+ for (j= 0; j<4; j++){
+ for (n=0; n<4; n++){
+ //for (i=0; i<3; i++){
+ str = g_strdup_printf("tape%i.png", n+1);
+ actor = init_object(desktop_plugin, "tape", str,
+ fast_rnd(800), fast_rnd(480), 2+fast_rnd(6), 800, sizes1[n],
+ TRUE, TRUE, 100, 255,
+ NULL, NULL, NULL);
+ scene->actors = g_slist_append(scene->actors, actor);
+ g_ptr_array_add(child, actor);
+ g_free(str);
+ //}
+ }
+ }
+ actor = init_object(desktop_plugin, "tape", "",
+ 0, 800, 5, 800, 170,
+ FALSE, FALSE, 100, 255,
+ (gpointer)&change_tape, NULL, child);
+ actor->time_start_animation = now;
+ actor->duration_animation = G_MAXINT;
+ scene->actors = g_slist_append(scene->actors, actor);
+
+ run_long_timeout(desktop_plugin);
+}
+
void
parsestring(char *line, char **argv)
{