Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src
Modified Files:
ewl_radiobutton.c ewl_radiobutton.h
Log Message:
Minor change to the radiobutton API. Just for consistency with parameter
passing.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_radiobutton.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -3 -r1.29 -r1.30
--- ewl_radiobutton.c 19 Nov 2003 20:18:35 -0000 1.29
+++ ewl_radiobutton.c 10 Feb 2004 05:46:02 -0000 1.30
@@ -30,16 +30,11 @@
* Associates @a w with the same chain as @a c, in order to
* ensure that only one radio button of that group is checked at any time.
*/
-void ewl_radiobutton_set_chain(Ewl_Widget * w, Ewl_Widget * c)
+void ewl_radiobutton_set_chain(Ewl_RadioButton *rb, Ewl_RadioButton *crb)
{
- Ewl_RadioButton *rb, *crb;
-
DENTER_FUNCTION(DLEVEL_STABLE);
- DCHECK_PARAM_PTR("w", w);
- DCHECK_PARAM_PTR("c", c);
-
- rb = EWL_RADIOBUTTON(w);
- crb = EWL_RADIOBUTTON(c);
+ DCHECK_PARAM_PTR("rb", rb);
+ DCHECK_PARAM_PTR("crb", crb);
/*
* If a chain doesnt exist, create one
@@ -47,12 +42,12 @@
if (!crb->chain) {
crb->chain = ewd_list_new();
- ewd_list_append(crb->chain, w);
- ewd_list_append(crb->chain, c);
+ ewd_list_append(crb->chain, rb);
+ ewd_list_append(crb->chain, crb);
} else {
- if (!ewd_list_goto(crb->chain, w))
- ewd_list_append(crb->chain, w);
+ if (!ewd_list_goto(crb->chain, rb))
+ ewd_list_append(crb->chain, rb);
}
rb->chain = crb->chain;
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_radiobutton.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- ewl_radiobutton.h 19 Nov 2003 20:18:35 -0000 1.15
+++ ewl_radiobutton.h 10 Feb 2004 05:46:02 -0000 1.16
@@ -54,7 +54,7 @@
*/
#define ewl_radiobutton_is_checked(r) \
ewl_checkbutton_is_checked(EWL_CHECKBUTTON(r))
-void ewl_radiobutton_set_chain(Ewl_Widget * w, Ewl_Widget * c);
+void ewl_radiobutton_set_chain(Ewl_RadioButton * w, Ewl_RadioButton * c);
/*
* Internally used callbacks, override at your own risk.
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs