Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests Modified Files: ewl_icon.c Log Message: - you can now specify and ewl_icon as having a compressed label. this will cause only 10 chars of the label to appear when displayed followed by a ... symbol. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/ewl_icon.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- ewl_icon.c 12 Apr 2006 01:48:17 -0000 1.3 +++ ewl_icon.c 21 May 2006 07:15:17 -0000 1.4 @@ -18,44 +18,69 @@ { Ewl_Widget *o, *o2; - 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 (Editable)"); - ewl_icon_editable_set(EWL_ICON(o), TRUE); - 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); - - o2 = ewl_text_new(); - ewl_text_text_set(EWL_TEXT(o2), "This icon has\nextended data\n set " - "on it.\n\n That data is just \n" - "text, but could\nbe any widget."); - ewl_widget_show(o2); - - o = ewl_icon_new(); - ewl_icon_image_set(EWL_ICON(o), - PACKAGE_DATA_DIR "/images/World.png", NULL); - ewl_icon_extended_data_set(EWL_ICON(o), o2); - ewl_icon_label_set(EWL_ICON(o), "World"); - ewl_icon_type_set(EWL_ICON(o), EWL_ICON_TYPE_LONG); - 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_icon_image_set(EWL_ICON(o), + PACKAGE_DATA_DIR "/images/Draw.png", NULL); + ewl_icon_label_set(EWL_ICON(o), "Draw (Editable)"); + ewl_icon_editable_set(EWL_ICON(o), TRUE); + ewl_container_child_append(EWL_CONTAINER(box), o); + ewl_widget_show(o); - o = ewl_icon_new(); + o = ewl_hseparator_new(); + ewl_container_child_append(EWL_CONTAINER(box), o); + ewl_widget_show(o); + + o2 = ewl_text_new(); + ewl_text_text_set(EWL_TEXT(o2), "This icon has\nextended data\n set " + "on it.\n\n That data is just \n" + "text, but could\nbe any widget."); + ewl_widget_show(o2); + + o = ewl_icon_new(); + ewl_icon_image_set(EWL_ICON(o), + PACKAGE_DATA_DIR "/images/World.png", NULL); + ewl_icon_extended_data_set(EWL_ICON(o), o2); + ewl_icon_label_set(EWL_ICON(o), "World"); + ewl_icon_type_set(EWL_ICON(o), EWL_ICON_TYPE_LONG); + 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); + 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); + + 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), "This is a long title that is compressed."); + ewl_icon_label_compressed_set(EWL_ICON(o), TRUE); + 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_icon_image_set(EWL_ICON(o), + PACKAGE_DATA_DIR "/images/Draw.png", NULL); + ewl_icon_label_set(EWL_ICON(o), "This is a long title that is compressed."); + ewl_icon_label_compressed_set(EWL_ICON(o), TRUE); + ewl_icon_editable_set(EWL_ICON(o), TRUE); + ewl_container_child_append(EWL_CONTAINER(box), o); + ewl_widget_show(o); return 1; } ------------------------------------------------------- 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