+short_timeout (AWallpaperPlugin *desktop_plugin)
+{
+ gint daytime = get_daytime();
+ GSList * tmp;
+ gchar * name;
+ void (*pfunc)(gpointer, gpointer);
+ time_t now;
+ gint t;
+ Actor *actor;
+ gboolean stop_flag = TRUE;
+
+ now = time(NULL);
+fprintf(stderr, "Short timer %d\n", now);
+ tmp = scene.actors;
+ while (tmp != NULL){
+ actor = tmp->data;
+ if (now >= actor->time_start_animation
+ && actor->time_start_animation > 0
+ /* && now - actor->time_start_animation <= actor->duration_animation*/){
+ pfunc = actor->func_change;
+ if (pfunc){
+ (*pfunc)(actor, desktop_plugin);
+ stop_flag = FALSE;
+ }
+ }
+ tmp = g_slist_next(tmp);
+ }
+
+ scene.daytime = daytime;
+ if (stop_flag){
+ desktop_plugin->priv->short_timer = 0;
+ return FALSE;
+ }else
+ return TRUE; /* keep running this event */
+}
+
+
+static gboolean
+long_timeout (AWallpaperPlugin *desktop_plugin)