Enlightenment CVS committal Author : werkt Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src Modified Files: ewl_checkbutton.c ewl_checkbutton.h ewl_widget.c ewl_widget.h Log Message: Added ewl_widget_appearance_single_get and fixed pointer inconsistency in ewl_checkbutton =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_checkbutton.c,v retrieving revision 1.46 retrieving revision 1.47 diff -u -3 -r1.46 -r1.47 --- ewl_checkbutton.c 9 Dec 2004 05:26:09 -0000 1.46 +++ ewl_checkbutton.c 4 Jan 2005 17:36:26 -0000 1.47 @@ -63,23 +63,21 @@ } /** - * @param w: the widget to change the label positioning + * @param cb: the widget to change the label positioning * @param p: the new position of the label * @return Returns no value. * @brief Set the check buttons label position * * Changes the position of the label associated with the check button. */ -void ewl_checkbutton_label_position_set(Ewl_Widget * w, Ewl_Position p) +void ewl_checkbutton_label_position_set(Ewl_CheckButton * cb, Ewl_Position p) { Ewl_Button *b; - Ewl_CheckButton *cb; DENTER_FUNCTION(DLEVEL_STABLE); - DCHECK_PARAM_PTR("w", w); + DCHECK_PARAM_PTR("cb", cb); - b = EWL_BUTTON(w); - cb = EWL_CHECKBUTTON(w); + b = EWL_BUTTON(cb); if (cb->label_position == p) DRETURN(DLEVEL_STABLE); @@ -103,7 +101,7 @@ ewl_container_child_append(EWL_CONTAINER(cb), cb->check); } - ewl_widget_configure(w); + ewl_widget_configure(cb); DLEAVE_FUNCTION(DLEVEL_STABLE); } =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_checkbutton.h,v retrieving revision 1.23 retrieving revision 1.24 diff -u -3 -r1.23 -r1.24 --- ewl_checkbutton.h 9 Dec 2004 02:09:55 -0000 1.23 +++ ewl_checkbutton.h 4 Jan 2005 17:36:26 -0000 1.24 @@ -60,7 +60,7 @@ #define ewl_checkbutton_is_checked(cb) \ ewl_check_is_checked(EWL_CHECK(EWL_CHECKBUTTON(cb)->check)) -void ewl_checkbutton_label_position_set(Ewl_Widget * w, +void ewl_checkbutton_label_position_set(Ewl_CheckButton * cb, Ewl_Position p); void ewl_checkbutton_clicked_cb(Ewl_Widget * w, void *ev_data, =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_widget.c,v retrieving revision 1.131 retrieving revision 1.132 diff -u -3 -r1.131 -r1.132 --- ewl_widget.c 28 Dec 2004 23:02:36 -0000 1.131 +++ ewl_widget.c 4 Jan 2005 17:36:26 -0000 1.132 @@ -464,6 +464,24 @@ } /** + * @param w: the widget to retrieve the appearance key + * @return Returns a pointer to the last element of the appearance key string + * on success, NULL on failure. + * @brief Retrieve the last element of the appearance key of the widget + */ +char *ewl_widget_appearance_single_get(Ewl_Widget * w) +{ + char *ret; + + DENTER_FUNCTION(DLEVEL_STABLE); + DCHECK_PARAM_PTR_RET("w", w, NULL); + + ret = strdup( w->appearance ? w->appearance : "" ); + + DRETURN_PTR(ret, DLEVEL_STABLE); +} + +/** * @param w: the widget to update the appearance * @param state: the new state of the widget * @return Returns no value. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_widget.h,v retrieving revision 1.46 retrieving revision 1.47 diff -u -3 -r1.46 -r1.47 --- ewl_widget.h 9 Dec 2004 05:26:11 -0000 1.46 +++ ewl_widget.h 4 Jan 2005 17:36:27 -0000 1.47 @@ -125,6 +125,11 @@ char *ewl_widget_appearance_get(Ewl_Widget * w); /* + * Retrieve the last element of the appearance string of a widget. + */ +char *ewl_widget_appearance_single_get(Ewl_Widget * w); + +/* * Append to the inherited string */ void ewl_widget_inherit(Ewl_Widget *widget, char *type); ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs