added windows in all houses in Modern
authorTanya <tanya@bookdmitri.oblgaz>
Tue, 13 Apr 2010 16:22:37 +0000 (19:22 +0300)
committerTanya <tanya@bookdmitri.oblgaz>
Tue, 13 Apr 2010 16:22:37 +0000 (19:22 +0300)
applet/data/theme/Modern/window1.png
applet/data/theme/Modern/window2.png [new file with mode: 0644]
applet/data/theme/Modern/window3.png [new file with mode: 0644]
applet/data/theme/Modern/window4.png [new file with mode: 0644]
applet/data/theme/Modern/window5.png [new file with mode: 0644]
applet/src/livewp-home-widget.c

index d46c959..15bd019 100644 (file)
Binary files a/applet/data/theme/Modern/window1.png and b/applet/data/theme/Modern/window1.png differ
diff --git a/applet/data/theme/Modern/window2.png b/applet/data/theme/Modern/window2.png
new file mode 100644 (file)
index 0000000..e7fc4e8
Binary files /dev/null and b/applet/data/theme/Modern/window2.png differ
diff --git a/applet/data/theme/Modern/window3.png b/applet/data/theme/Modern/window3.png
new file mode 100644 (file)
index 0000000..c700cf8
Binary files /dev/null and b/applet/data/theme/Modern/window3.png differ
diff --git a/applet/data/theme/Modern/window4.png b/applet/data/theme/Modern/window4.png
new file mode 100644 (file)
index 0000000..435db93
Binary files /dev/null and b/applet/data/theme/Modern/window4.png differ
diff --git a/applet/data/theme/Modern/window5.png b/applet/data/theme/Modern/window5.png
new file mode 100644 (file)
index 0000000..6e86c75
Binary files /dev/null and b/applet/data/theme/Modern/window5.png differ
index 3ca54e6..ec87d5f 100644 (file)
@@ -697,6 +697,7 @@ init_scene(AWallpaperPlugin *desktop_plugin)
 {
   Actor *actor;
   gint now = time(NULL);
+  gint i;
 
   /* fprintf(stderr, "init scene \n");*/
   scene.daytime = get_daytime();
@@ -771,6 +772,7 @@ init_scene(AWallpaperPlugin *desktop_plugin)
 
     /* windows in 4-th house  */
     gint winds[13][2];
+
     winds[0][0] = 482;
     winds[0][1] = 180;
 
@@ -809,7 +811,6 @@ init_scene(AWallpaperPlugin *desktop_plugin)
     
     winds[12][0] = 495;
     winds[12][1] = 303;
-    gint i;
     for (i=0; i<13; i++){
         actor = init_object(desktop_plugin, "window1", "window1.png", 
                             winds[i][0], winds[i][1], 8, 8, 10, 
@@ -819,6 +820,147 @@ init_scene(AWallpaperPlugin *desktop_plugin)
         scene.actors = g_slist_append(scene.actors, actor);
 
     }
+    
+    /* windows in 1-th house  */
+    
+    winds[0][0] = 86;
+    winds[0][1] = 321;
+
+    winds[1][0] = 86;
+    winds[1][1] = 363;
+
+    winds[2][0] = 86;
+    winds[2][1] = 385;
+
+    winds[3][0] = 86;
+    winds[3][1] = 286;
+    
+    winds[4][0] = 94;
+    winds[4][1] = 232;
+    
+    winds[5][0] = 94;
+    winds[5][1] = 243;
+    
+    winds[6][0] = 94;
+    winds[6][1] = 265;
+    
+    winds[7][0] = 94;
+    winds[7][1] = 331;
+    for (i=0; i<8; i++){
+        actor = init_object(desktop_plugin, "window2", "window2.png", 
+                            winds[i][0], winds[i][1], 8, 8, 10, 
+                            TRUE, 100, 255, (gpointer)&change_window1, NULL);
+        //change_window1(actor, desktop_plugin);
+        actor->time_start_animation = now + fast_rnd(30);
+        scene.actors = g_slist_append(scene.actors, actor);
+
+    }
+    
+    /* windows in 3-th house  */
+    
+    winds[0][0] = 251;
+    winds[0][1] = 162;
+
+    winds[1][0] = 251;
+    winds[1][1] = 196;
+
+    winds[2][0] = 251;
+    winds[2][1] = 278;
+
+    winds[3][0] = 251;
+    winds[3][1] = 289;
+    
+    winds[4][0] = 313;
+    winds[4][1] = 173;
+    
+    winds[5][0] = 322;
+    winds[5][1] = 160;
+    
+    winds[6][0] = 303;
+    winds[6][1] = 217;
+    
+    winds[7][0] = 322;
+    winds[7][1] = 224;
+    
+    winds[8][0] = 323;
+    winds[8][1] = 217;
+    
+    winds[9][0] = 322;
+    winds[9][1] = 288;
+    
+    for (i=0; i<10; i++){
+        actor = init_object(desktop_plugin, "window3", "window3.png", 
+                            winds[i][0], winds[i][1], 8, 8, 10, 
+                            FALSE, 100, 255, (gpointer)&change_window1, NULL);
+        //change_window1(actor, desktop_plugin);
+        actor->time_start_animation = now + fast_rnd(30);
+        scene.actors = g_slist_append(scene.actors, actor);
+
+    }
+
+    /* windows in 5-th house  */
+    
+    winds[0][0] = 610;
+    winds[0][1] = 224;
+
+    winds[1][0] = 602;
+    winds[1][1] = 245;
+
+    winds[2][0] = 602;
+    winds[2][1] = 264;
+
+    winds[3][0] = 610;
+    winds[3][1] = 301;
+    
+    winds[4][0] = 610;
+    winds[4][1] = 320;
+    
+    winds[5][0] = 593;
+    winds[5][1] = 352;
+    
+    winds[6][0] = 610;
+    winds[6][1] = 368;
+    
+    for (i=0; i<7; i++){
+        actor = init_object(desktop_plugin, "window4", "window4.png", 
+                            winds[i][0], winds[i][1], 8, 8, 10, 
+                            FALSE, 100, 255, (gpointer)&change_window1, NULL);
+        //change_window1(actor, desktop_plugin);
+        actor->time_start_animation = now + fast_rnd(30);
+        scene.actors = g_slist_append(scene.actors, actor);
+
+    }
+
+    /* windows in 6-th house  */
+    
+    winds[0][0] = 717;
+    winds[0][1] = 283;
+
+    winds[1][0] = 698;
+    winds[1][1] = 293;
+
+    winds[2][0] = 717;
+    winds[2][1] = 315;
+
+    winds[3][0] = 717;
+    winds[3][1] = 323;
+    
+    winds[4][0] = 698;
+    winds[4][1] = 362;
+    
+    winds[5][0] = 698;
+    winds[5][1] = 400;
+    
+    for (i=0; i<6; i++){
+        actor = init_object(desktop_plugin, "window5", "window5.png", 
+                            winds[i][0], winds[i][1], 8, 8, 10, 
+                            FALSE, 100, 255, (gpointer)&change_window1, NULL);
+        //change_window1(actor, desktop_plugin);
+        actor->time_start_animation = now + fast_rnd(30);
+        scene.actors = g_slist_append(scene.actors, actor);
+
+    }
+
 #if 0    
   anim = g_new0(Animation, 1);
   anim->count = 1;