Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests Modified Files: ewl_layer.c Log Message: remove unneeded lines =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/ewl_layer.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- ewl_layer.c 13 Jul 2006 19:43:24 -0000 1.2 +++ ewl_layer.c 28 Sep 2006 20:36:20 -0000 1.3 @@ -142,7 +142,6 @@ void *user_data __UNUSED__) { int x, y; - int width, height; int i; x = CURRENT_X(w); @@ -150,28 +149,17 @@ /* * place the first row of buttons */ - ewl_object_preferred_size_get(EWL_OBJECT(button_row1[0]), - &width, &height); - for (i = 0; i < 20; i++) { - ewl_object_place(EWL_OBJECT(button_row1[i]), - i * 5 + x, i * 5 + y, - width, height); - } - + for (i = 0; i < 20; i++) + ewl_object_position_request(EWL_OBJECT(button_row1[i]), + i * 5 + x, i * 5 + y); /* * place the second row */ - ewl_object_preferred_size_get(EWL_OBJECT(button_row2[0]), - &width, &height); - for (i = 0; i < 20; i++) { + for (i = 0; i < 20; i++) ewl_object_position_request(EWL_OBJECT(button_row2[i]), i * 5 + 40 + x, i * 5 + y); - ewl_object_size_request(EWL_OBJECT(button_row2[i]), - width, height); - } ewl_object_position_request(EWL_OBJECT(dbutton[0]), 180 + x, 0 + y); ewl_object_position_request(EWL_OBJECT(dbutton[1]), 220 + x, 20 + y); - } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs