Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests Modified Files: ewl_button.c Log Message: - fix formatting =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/tests/ewl_button.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- ewl_button.c 2 Mar 2006 23:52:49 -0000 1.2 +++ ewl_button.c 8 Mar 2006 16:14:47 -0000 1.3 @@ -21,10 +21,10 @@ { Ewl_Widget *hbox; Ewl_Widget *vbox; - Ewl_Widget *separator[2]; - Ewl_Widget *button[2]; - Ewl_Widget *check_button[3]; - Ewl_Widget *radio_button[2]; + Ewl_Widget *separator[2]; + Ewl_Widget *button[2]; + Ewl_Widget *check_button[3]; + Ewl_Widget *radio_button[2]; /* * Pack the button tests horizontally. @@ -40,29 +40,29 @@ ewl_container_child_append(EWL_CONTAINER(hbox), vbox); ewl_widget_show(vbox); - /* - * Create a button to be displayed witha label. - */ - button[0] = ewl_button_new(); - ewl_button_label_set(EWL_BUTTON(button[0]), "With Label"); - ewl_container_child_append(EWL_CONTAINER(vbox), button[0]); - ewl_object_alignment_set(EWL_OBJECT(button[0]), EWL_FLAG_ALIGN_LEFT); - ewl_widget_show(button[0]); - - /* - * Create a button that does not contain a label - */ - button[1] = ewl_button_new(); - ewl_container_child_append(EWL_CONTAINER(vbox), button[1]); - ewl_object_alignment_set(EWL_OBJECT(button[1]), EWL_FLAG_ALIGN_LEFT); - ewl_widget_show(button[1]); - - /* - * Add a separator between the classic buttons and the check buttons. - */ - separator[0] = ewl_vseparator_new(); - ewl_container_child_append(EWL_CONTAINER(hbox), separator[0]); - ewl_widget_show(separator[0]); + /* + * Create a button to be displayed witha label. + */ + button[0] = ewl_button_new(); + ewl_button_label_set(EWL_BUTTON(button[0]), "With Label"); + ewl_container_child_append(EWL_CONTAINER(vbox), button[0]); + ewl_object_alignment_set(EWL_OBJECT(button[0]), EWL_FLAG_ALIGN_LEFT); + ewl_widget_show(button[0]); + + /* + * Create a button that does not contain a label + */ + button[1] = ewl_button_new(); + ewl_container_child_append(EWL_CONTAINER(vbox), button[1]); + ewl_object_alignment_set(EWL_OBJECT(button[1]), EWL_FLAG_ALIGN_LEFT); + ewl_widget_show(button[1]); + + /* + * Add a separator between the classic buttons and the check buttons. + */ + separator[0] = ewl_vseparator_new(); + ewl_container_child_append(EWL_CONTAINER(hbox), separator[0]); + ewl_widget_show(separator[0]); /* * Use a vertical box for the buttons in a test area. @@ -71,42 +71,42 @@ ewl_container_child_append(EWL_CONTAINER(hbox), vbox); ewl_widget_show(vbox); - /* - * Create a check button with a label. - */ - check_button[0] = ewl_checkbutton_new(); - ewl_button_label_set(EWL_BUTTON(check_button[0] ), "With Label"); - ewl_container_child_append(EWL_CONTAINER(vbox), check_button[0]); - ewl_object_alignment_set(EWL_OBJECT(check_button[0]), - EWL_FLAG_ALIGN_LEFT); - ewl_widget_show(check_button[0]); - - /* - * Create a check button with a label and checked. - */ - check_button[1] = ewl_checkbutton_new(); - ewl_button_label_set(EWL_BUTTON(check_button[1] ), "With Label and checked"); - ewl_checkbutton_checked_set(EWL_CHECKBUTTON(check_button[1]), TRUE); - ewl_container_child_append(EWL_CONTAINER(vbox), check_button[1]); - ewl_object_alignment_set(EWL_OBJECT(check_button[1]), - EWL_FLAG_ALIGN_LEFT); - ewl_widget_show(check_button[1]); - - /* - * Create a check button w/o a label. - */ - check_button[2] = ewl_checkbutton_new(); - ewl_container_child_append(EWL_CONTAINER(vbox), check_button[2]); - ewl_object_alignment_set(EWL_OBJECT(check_button[2]), - EWL_FLAG_ALIGN_LEFT); - ewl_widget_show(check_button[2]); - - /* - * Add a separator between the check buttons and the radio buttons - */ - separator[1] = ewl_vseparator_new(); - ewl_container_child_append(EWL_CONTAINER(hbox), separator[1]); - ewl_widget_show(separator[1]); + /* + * Create a check button with a label. + */ + check_button[0] = ewl_checkbutton_new(); + ewl_button_label_set(EWL_BUTTON(check_button[0] ), "With Label"); + ewl_container_child_append(EWL_CONTAINER(vbox), check_button[0]); + ewl_object_alignment_set(EWL_OBJECT(check_button[0]), + EWL_FLAG_ALIGN_LEFT); + ewl_widget_show(check_button[0]); + + /* + * Create a check button with a label and checked. + */ + check_button[1] = ewl_checkbutton_new(); + ewl_button_label_set(EWL_BUTTON(check_button[1] ), "With Label and checked"); + ewl_checkbutton_checked_set(EWL_CHECKBUTTON(check_button[1]), TRUE); + ewl_container_child_append(EWL_CONTAINER(vbox), check_button[1]); + ewl_object_alignment_set(EWL_OBJECT(check_button[1]), + EWL_FLAG_ALIGN_LEFT); + ewl_widget_show(check_button[1]); + + /* + * Create a check button w/o a label. + */ + check_button[2] = ewl_checkbutton_new(); + ewl_container_child_append(EWL_CONTAINER(vbox), check_button[2]); + ewl_object_alignment_set(EWL_OBJECT(check_button[2]), + EWL_FLAG_ALIGN_LEFT); + ewl_widget_show(check_button[2]); + + /* + * Add a separator between the check buttons and the radio buttons + */ + separator[1] = ewl_vseparator_new(); + ewl_container_child_append(EWL_CONTAINER(hbox), separator[1]); + ewl_widget_show(separator[1]); /* * Use a vertical box for the buttons in a test area. @@ -115,24 +115,24 @@ ewl_container_child_append(EWL_CONTAINER(hbox), vbox); ewl_widget_show(vbox); - /* - * Add a radio button with - */ - radio_button[0] = ewl_radiobutton_new(); - ewl_button_label_set(EWL_BUTTON(radio_button[0] ), "With Label"); - ewl_radiobutton_checked_set(radio_button[0], TRUE); - ewl_container_child_append(EWL_CONTAINER(vbox), radio_button[0]); - ewl_object_alignment_set(EWL_OBJECT(radio_button[0]), - EWL_FLAG_ALIGN_LEFT); - ewl_widget_show(radio_button[0]); - - radio_button[1] = ewl_radiobutton_new(); - ewl_radiobutton_chain_set(EWL_RADIOBUTTON(radio_button[1]), - EWL_RADIOBUTTON(radio_button[0])); - ewl_container_child_append(EWL_CONTAINER(vbox), radio_button[1]); - ewl_object_alignment_set(EWL_OBJECT(radio_button[1]), - EWL_FLAG_ALIGN_LEFT); - ewl_widget_show(radio_button[1]); + /* + * Add a radio button with + */ + radio_button[0] = ewl_radiobutton_new(); + ewl_button_label_set(EWL_BUTTON(radio_button[0] ), "With Label"); + ewl_radiobutton_checked_set(radio_button[0], TRUE); + ewl_container_child_append(EWL_CONTAINER(vbox), radio_button[0]); + ewl_object_alignment_set(EWL_OBJECT(radio_button[0]), + EWL_FLAG_ALIGN_LEFT); + ewl_widget_show(radio_button[0]); + + radio_button[1] = ewl_radiobutton_new(); + ewl_radiobutton_chain_set(EWL_RADIOBUTTON(radio_button[1]), + EWL_RADIOBUTTON(radio_button[0])); + ewl_container_child_append(EWL_CONTAINER(vbox), radio_button[1]); + ewl_object_alignment_set(EWL_OBJECT(radio_button[1]), + EWL_FLAG_ALIGN_LEFT); + ewl_widget_show(radio_button[1]); return 1; } ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs