From: <enl...@li...> - 2003-04-12 11:08:00
|
Enlightenment CVS committal Author : technikolor Project : e17 Module : libs/ewl Dir : e17/libs/ewl/test Modified Files: ewl_image_test.c Log Message: Minor tweeks to the image test. Still doesn't render images, but doesn't look as broken. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_image_test.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -3 -r1.9 -r1.10 --- ewl_image_test.c 14 Aug 2002 02:05:37 -0000 1.9 +++ ewl_image_test.c 12 Apr 2003 11:07:59 -0000 1.10 @@ -7,6 +7,8 @@ Ewl_Widget *image; Ewd_DList *images; Ewl_Widget *entry_path; +Ewl_Widget *note_box; +Ewl_Widget *note; void __create_image_test_window(Ewl_Widget * w, void *ev_data, @@ -196,17 +198,19 @@ button_hbox = ewl_hbox_new(); ewl_box_set_spacing(EWL_BOX(button_hbox), 5); ewl_object_set_alignment(EWL_OBJECT(button_hbox), EWL_ALIGNMENT_CENTER); - ewl_object_set_custom_size(EWL_OBJECT(button_hbox), 112, 38); + ewl_object_set_custom_size(EWL_OBJECT(button_hbox), 300, 26); ewl_container_append_child(EWL_CONTAINER(image_box), button_hbox); ewl_widget_show(button_hbox); - button_prev = ewl_button_new(NULL); - button_load = ewl_button_new(NULL); - button_next = ewl_button_new(NULL); - - ewl_object_set_custom_size(EWL_OBJECT(button_prev), 32, 32); - ewl_object_set_custom_size(EWL_OBJECT(button_load), 32, 32); - ewl_object_set_custom_size(EWL_OBJECT(button_next), 32, 32); + button_prev = ewl_button_new("Previous"); + button_load = ewl_button_new("Load"); + button_next = ewl_button_new("Next"); + +/* + ewl_object_set_custom_size(EWL_OBJECT(button_prev), 32, NULL); + ewl_object_set_custom_size(EWL_OBJECT(button_load), 32, NULL); + ewl_object_set_custom_size(EWL_OBJECT(button_next), 32, NULL); +*/ ewl_container_append_child(EWL_CONTAINER(button_hbox), button_prev); ewl_container_append_child(EWL_CONTAINER(button_hbox), button_load); @@ -267,6 +271,20 @@ ewl_widget_show(button_load); ewl_widget_show(button_next); + + note_box = ewl_hbox_new(); + ewl_container_append_child(EWL_CONTAINER(image_box), note_box); + ewl_object_set_alignment(EWL_OBJECT(note_box), EWL_ALIGNMENT_CENTER); + ewl_object_set_maximum_h(EWL_OBJECT(note_box), 20); + ewl_widget_show(note_box); + + note = ewl_text_new("These buttons don't do shit."); + ewl_text_set_color(EWL_TEXT(note), 255, 0, 0, 255); + ewl_container_append_child(EWL_CONTAINER(note_box), note); + ewl_widget_show(note); + + + image_file = NULL; if ((__image_exists(PACKAGE_DATA_DIR "/images/e17-border.bits.db")) @@ -280,6 +298,9 @@ if (image_file) ewd_dlist_append(images, image_file); + + ewl_widget_show(image); + return; ev_data = NULL; |