if (scene.wind_orientation == 0) scene.wind_orientation = -1;
scene.wind_angle = (double)(fast_rnd(200) - 100) / 100;
actor->time_start_animation = time(NULL) + (fast_rnd(10) + 10) * 60;
- fprintf(stderr, "change wind orient = %d angle = %f after = %d\n", scene.wind_orientation, scene.wind_angle, actor->time_start_animation-time(NULL));
+ //fprintf(stderr, "change wind orient = %d angle = %f after = %d\n", scene.wind_orientation, scene.wind_angle, actor->time_start_animation-time(NULL));
}
void
actor->width,
actor->height,
NULL);
- fprintf(stderr, "33333 create actor=%s filename=%s\n", actor->name, str);
if (str)
g_free(str);
if (pixbuf){
str = g_strdup_printf( "%s/%s/%s", THEME_PATH,
desktop_plugin->priv->theme, actor->filename);
- fprintf(stderr, "44444 change actor=%s filename=%s\n", actor->name, str);
pixbuf = gdk_pixbuf_new_from_file_at_size (str,
actor->width,
actor->height,
pfunc =((Actor*)tmp->data)->func_change;
if (pfunc){
(*pfunc)(tmp->data, desktop_plugin);
- fprintf(stderr, "7777 change %s\n", actor->name);
}
tmp = g_slist_next(tmp);
}
if (desktop_plugin->priv->rich_animation){
actor->time_start_animation = now;
desktop_plugin->priv->short_timer = g_timeout_add(SHORT_TIMER, (GtkFunction)short_timeout, desktop_plugin);
- fprintf(stderr, "55555 start animation for %s\n", actor->name);
}
else {
(*actor->func_change)(actor, desktop_plugin);
- fprintf(stderr, "66666 change %s\n", actor->name);
}
}
tmp = g_slist_next(tmp);