From 503b76f99cc7ec32c678b1c1fea331453e9b5a0f Mon Sep 17 00:00:00 2001 From: Tanya Date: Tue, 13 Apr 2010 19:22:37 +0300 Subject: [PATCH] added windows in all houses in Modern --- applet/data/theme/Modern/window1.png | Bin 197 -> 320 bytes applet/data/theme/Modern/window2.png | Bin 0 -> 243 bytes applet/data/theme/Modern/window3.png | Bin 0 -> 229 bytes applet/data/theme/Modern/window4.png | Bin 0 -> 247 bytes applet/data/theme/Modern/window5.png | Bin 0 -> 273 bytes applet/src/livewp-home-widget.c | 144 +++++++++++++++++++++++++++++++++- 6 files changed, 143 insertions(+), 1 deletion(-) create mode 100644 applet/data/theme/Modern/window2.png create mode 100644 applet/data/theme/Modern/window3.png create mode 100644 applet/data/theme/Modern/window4.png create mode 100644 applet/data/theme/Modern/window5.png diff --git a/applet/data/theme/Modern/window1.png b/applet/data/theme/Modern/window1.png index d46c9590885fe15fd2eeb6fd495231b988f84d60..15bd019d72d220048abd1c118d410264aa166b22 100644 GIT binary patch delta 304 zcmX@gcz|hwWIY=L14HL=`34}xSRCZ;#IWw1%u67LEy>&6h2cL4F4((#GEjuGz$3Dl zfq`2Xgc%uT&5-~KvX^-Jy0YJ5;T6)ce$OnI02Goeag8W(&d<$F%`0JWE=o--Nlj5G z&n(GMaQE~L2yf&Q2P&HF>Eak7ad~h31Z}=U4h*d6H(gC%nl0p9*}^@cfYC#i%U>WN z%Yt#a)4~r6qGZe;C_4mrY|osm$Hch8YTmr*o@`la42y2syenzm_uMk$?SriL%OAbA zL~yYh%xvRn+dKbxUNyslz~w)f7cg`=73{O|ygX;qnh8OL^(XizOxOGPuWhTC!p5mb xXK22uH48Gix*000K1h}QrB0E|gQK~xBtW3)7KV88}g7#J9I^%NDABn1Sx z`T4o|__?1weKUXVP8J3RhNu`Pdk1~E+T+KrF)%PNVKs-k5-e=&Y`=anK7aA$)2AQ5 zfB$1zs{AHT+ra^7aV4}Pw$luGc)ty{q_GPsxGN{ z8pfnIXeT5&F!}iS@bvWb$OjyeFksX+YJd8E{(c_&eScFDl9GTpE$PSq|Mt?%b^(i? f_Qf-vWMHWNsdR4A`rJc6>lr*<{an^LB{Ts5ol;f? literal 0 HcmV?d00001 diff --git a/applet/data/theme/Modern/window3.png b/applet/data/theme/Modern/window3.png new file mode 100644 index 0000000000000000000000000000000000000000..c700cf8d118b42f3c6d14759011ac6642ad6db7f GIT binary patch literal 229 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqjKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=85p>QL70(Y)*K0-AbW|YuPgg47G5EBu2{|E6M;gKC9V-A&iT2y zsd*&~&PAz-C8;S2<(VZJ3hti10pX2&;y^_Xo-U3d5|@(`6xjCc+VlR+|LN1u|EsV3 z`DW2NFWwYOF^$|7m1C`I8agMuWDz~E#^U&a0|!1lJsp0sJpaC70MLZP8bZID3OJSn P&0_F$^>bP0l+XkKihD{R literal 0 HcmV?d00001 diff --git a/applet/data/theme/Modern/window4.png b/applet/data/theme/Modern/window4.png new file mode 100644 index 0000000000000000000000000000000000000000..435db936555c5f4d56eb0541cc1266bece4b465e GIT binary patch literal 247 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqjKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=85p>QL70(Y)*K0-AbW|YuPgg47G5C@6}I$i6M;gKC9V-A&iT2y zsd*&~&PAz-C8;S2<(VZJ3hti10pX2&;y^_~o-U3d5|@(`6j(MTGn??`MAm$}`BpgH z|9yP9SnNDkSJ#=R?_E6C(b(Ad@aN{|5^M&7n;I7|iLtS@<@50HJeL51e}Dh4Zw}wO ef3K$%^Gcvou8Hh&>+J)1jlt8^&t;ucLK6U$P)qLs literal 0 HcmV?d00001 diff --git a/applet/data/theme/Modern/window5.png b/applet/data/theme/Modern/window5.png new file mode 100644 index 0000000000000000000000000000000000000000..6e86c75eb2d158a79a4bce520b4b2b2c21e9d888 GIT binary patch literal 273 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqjKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=85p>QL70(Y)*K0-AbW|YuPgg47G5Du^|sP&SwJDl64!_l=ltB< z)VvY~=c3falGGH1^30M91$R&1fbd2>aiF3cPZ!4!iOb0)g_}&d_&?d4K6dKVfn%qV zWM+m`^f7X7=-~XkpYuym)5r7sc9u6i{CN2}PusS}9v&d@0pfg#4-9H-ObwlljgE5j znWjBof3NUd^tQ%_|LfV>;`i5`|MTnZ?=|M{?->X1Gcc?(kuS6f+p7+=m%-E3&t;uc GLK6V_^IbIn literal 0 HcmV?d00001 diff --git a/applet/src/livewp-home-widget.c b/applet/src/livewp-home-widget.c index 3ca54e6..ec87d5f 100644 --- a/applet/src/livewp-home-widget.c +++ b/applet/src/livewp-home-widget.c @@ -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; -- 1.7.9.5