some change in where start actor animation
authortanya <tanya@moshkanov.oblgaz>
Sat, 24 Apr 2010 14:28:12 +0000 (17:28 +0300)
committertanya <tanya@moshkanov.oblgaz>
Sat, 24 Apr 2010 14:28:12 +0000 (17:28 +0300)
applet/src/livewp-home-widget.c

index baec818..6591d65 100644 (file)
@@ -360,7 +360,7 @@ change_tram(Actor * actor, AWallpaperPlugin *desktop_plugin)
         /* stop animation */
         actor->visible = FALSE;
         destroy_hildon_actor(actor);
-        actor->time_start_animation = sec + fast_rnd(300);
+        actor->time_start_animation = sec + fast_rnd(60);
     }
 }
 
@@ -908,18 +908,16 @@ init_scene(AWallpaperPlugin *desktop_plugin)
   /* init value for random */
   scene.seed = time(NULL);
 
-
   actor = init_object(desktop_plugin, "sky", "sky0.png", 
                       0, 0, 5, 800, 480, 
-                      TRUE, TRUE, 100, 255, 
+                      TRUE , TRUE, 100, 255, 
                       (gpointer)&change_static_actor, NULL, NULL);
   change_static_actor(actor, desktop_plugin);
   scene.actors = g_slist_append(scene.actors, actor);
 
   actor = init_object(desktop_plugin, "sun", "sun.png", 
                       0, 0, 6, 88, 88, 
-                      TRUE, TRUE, 100, 255, 
+                      FALSE, FALSE, 100, 255, 
                       (gpointer)&change_sun, (gpointer)&probability_sun, NULL);
   actor->time_start_animation = now;
   actor->duration_animation = G_MAXINT;
@@ -934,7 +932,7 @@ init_scene(AWallpaperPlugin *desktop_plugin)
                       0, fast_rnd(300)-97, 7, 150, 97, 
                       FALSE, FALSE, 100, 255, 
                       (gpointer)&change_cloud, NULL, NULL);
-  actor->time_start_animation = now + fast_rnd(180);
+  actor->time_start_animation = now + fast_rnd(20);
   actor->duration_animation = 3*60;
   scene.actors = g_slist_append(scene.actors, actor);
   
@@ -942,7 +940,7 @@ init_scene(AWallpaperPlugin *desktop_plugin)
                       0, fast_rnd(300)-75, 7, 188, 75, 
                       FALSE, FALSE, 100, 255, 
                       (gpointer)&change_cloud, NULL, NULL);
-  actor->time_start_animation = now + fast_rnd(180);
+  actor->time_start_animation = now + fast_rnd(40)+10;
   actor->duration_animation = 3*60;
   scene.actors = g_slist_append(scene.actors, actor);
 
@@ -950,7 +948,7 @@ init_scene(AWallpaperPlugin *desktop_plugin)
                       0, fast_rnd(300)-75, 7, 150, 75, 
                       FALSE, FALSE, 100, 255, 
                       (gpointer)&change_cloud, NULL, NULL);
-  actor->time_start_animation = now + fast_rnd(180);
+  actor->time_start_animation = now + fast_rnd(60) + 20;
   actor->duration_animation = 5*60;
   scene.actors = g_slist_append(scene.actors, actor);
 
@@ -1227,7 +1225,7 @@ init_scene1(AWallpaperPlugin *desktop_plugin)
 
   
   actor = init_object(desktop_plugin, "sun", "sun.png", 0, 0, 6, 88, 88, 
-                      TRUE, TRUE, 100, 255, 
+                      FALSE, FALSE, 100, 255, 
                       (gpointer)&change_sun, (gpointer)&probability_sun, NULL);
   actor->time_start_animation = time(NULL);
   actor->duration_animation = G_MAXINT;
@@ -1606,7 +1604,7 @@ animation_wallpaper_plugin_init (AWallpaperPlugin *desktop_plugin)
     priv->desktop_plugin = desktop_plugin;
     priv->visible = TRUE;
     priv->short_timer = 0;
-    //priv->theme = g_strdup("Modern");
+    priv->theme = g_strdup("Modern");
     desktop_plugin->priv->main_widget = gtk_fixed_new();
 
     gtk_widget_set_size_request(desktop_plugin->priv->main_widget, 100, 32);