Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/button
Modified Files:
ewl_button.c
Log Message:
- add some disabled buttons so we can see what they look like
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/button/ewl_button.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewl_button.c 17 Oct 2006 04:59:53 -0000 1.1
+++ ewl_button.c 17 Nov 2006 05:17:42 -0000 1.2
@@ -23,9 +23,9 @@
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 *button[3];
+ Ewl_Widget *check_button[4];
+ Ewl_Widget *radio_button[3];
/*
* Pack the button tests horizontally.
@@ -59,6 +59,16 @@
ewl_widget_show(button[1]);
/*
+ * Create a button that's disabled
+ */
+ button[2] = ewl_button_new();
+ ewl_container_child_append(EWL_CONTAINER(vbox), button[2]);
+ ewl_object_alignment_set(EWL_OBJECT(button[2]), EWL_FLAG_ALIGN_LEFT);
+ ewl_button_label_set(EWL_BUTTON(button[0]), "Disabled");
+ ewl_widget_disable(button[2]);
+ ewl_widget_show(button[2]);
+
+ /*
* Add a separator between the classic buttons and the check buttons.
*/
separator[0] = ewl_vseparator_new();
@@ -103,6 +113,18 @@
ewl_widget_show(check_button[2]);
/*
+ * Create a check button thats disabled
+ */
+ check_button[3] = ewl_checkbutton_new();
+ ewl_button_label_set(EWL_BUTTON(check_button[3] ), "Disabled");
+ ewl_checkbutton_checked_set(EWL_CHECKBUTTON(check_button[3]), TRUE);
+ ewl_container_child_append(EWL_CONTAINER(vbox), check_button[3]);
+ ewl_object_alignment_set(EWL_OBJECT(check_button[3]),
+ EWL_FLAG_ALIGN_LEFT);
+ ewl_widget_disable(check_button[3]);
+ ewl_widget_show(check_button[3]);
+
+ /*
* Add a separator between the check buttons and the radio buttons
*/
separator[1] = ewl_vseparator_new();
@@ -134,6 +156,15 @@
ewl_object_alignment_set(EWL_OBJECT(radio_button[1]),
EWL_FLAG_ALIGN_LEFT);
ewl_widget_show(radio_button[1]);
+
+ radio_button[2] = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(radio_button[2] ), "Disabled");
+ ewl_radiobutton_checked_set(radio_button[2], TRUE);
+ ewl_container_child_append(EWL_CONTAINER(vbox), radio_button[2]);
+ ewl_object_alignment_set(EWL_OBJECT(radio_button[2]),
+ EWL_FLAG_ALIGN_LEFT);
+ ewl_widget_disable(radio_button[2]);
+ ewl_widget_show(radio_button[2]);
return 1;
}
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs