Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests Modified Files: ewl_icon.c Log Message: - better sizing for the icons. there is still a bit of text that is getting clipped by the box. - editing labels is broken. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/ewl_icon.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- ewl_icon.c 13 Jul 2006 19:43:24 -0000 1.6 +++ ewl_icon.c 6 Sep 2006 16:38:02 -0000 1.7 @@ -17,7 +17,30 @@ static int create_test(Ewl_Container *box) { - Ewl_Widget *o, *o2; + Ewl_Widget *o, *o2, *hbox; + + hbox = ewl_hbox_new(); + ewl_container_child_append(box, hbox); + ewl_widget_show(hbox); + + o = ewl_icon_new(); + ewl_box_orientation_set(EWL_BOX(o), EWL_ORIENTATION_HORIZONTAL); + ewl_icon_image_set(EWL_ICON(o), + PACKAGE_DATA_DIR "/images/Draw.png", NULL); + ewl_icon_label_set(EWL_ICON(o), "Draw"); + ewl_container_child_append(EWL_CONTAINER(hbox), o); + ewl_widget_show(o); + + o = ewl_icon_new(); + ewl_icon_image_set(EWL_ICON(o), + PACKAGE_DATA_DIR "/images/Draw.png", NULL); + ewl_icon_label_set(EWL_ICON(o), "Draw"); + ewl_container_child_append(EWL_CONTAINER(hbox), o); + ewl_widget_show(o); + + o = ewl_hseparator_new(); + ewl_container_child_append(EWL_CONTAINER(box), o); + ewl_widget_show(o); o = ewl_icon_new(); ewl_icon_image_set(EWL_ICON(o), @@ -46,18 +69,6 @@ ewl_container_child_append(EWL_CONTAINER(box), o); ewl_widget_show(o); - o = ewl_hseparator_new(); - ewl_container_child_append(EWL_CONTAINER(box), o); - ewl_widget_show(o); - - o = ewl_icon_new(); - ewl_box_orientation_set(EWL_BOX(o), EWL_ORIENTATION_HORIZONTAL); - ewl_icon_image_set(EWL_ICON(o), - PACKAGE_DATA_DIR "/images/Draw.png", NULL); - ewl_icon_label_set(EWL_ICON(o), "Draw"); - ewl_container_child_append(EWL_CONTAINER(box), o); - ewl_widget_show(o); - o = ewl_hseparator_new(); ewl_container_child_append(EWL_CONTAINER(box), o); ewl_widget_show(o); ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs