Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_password.c ewl_password.h Log Message: Updated password API. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_password.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- ewl_password.c 3 Oct 2005 06:43:07 -0000 1.5 +++ ewl_password.c 5 Oct 2005 22:45:57 -0000 1.6 @@ -8,7 +8,7 @@ * @return Returns a new password widget on success, NULL on failure. * @brief Allocate and initialize a new password widget */ -Ewl_Widget *ewl_password_new(char *text) +Ewl_Widget *ewl_password_new(void) { Ewl_Password *e; @@ -18,20 +18,19 @@ if (!e) return NULL; - ewl_password_init(e, text); + ewl_password_init(e); DRETURN_PTR(EWL_WIDGET(e), DLEVEL_STABLE); } /** * @param e: the password widget to initialize - * @param text: the initial text to display in the widget * @return Returns no value. * @brief Initialize an password widget to default values * * Initializes the password widget @a e to it's default values and callbacks. */ -void ewl_password_init(Ewl_Password * e, char *text) +void ewl_password_init(Ewl_Password * e) { Ewl_Widget *w; @@ -55,8 +54,6 @@ ewl_callback_append(w, EWL_CALLBACK_DESTROY, ewl_password_destroy, NULL); - ewl_password_text_set(e, text); - DLEAVE_FUNCTION(DLEVEL_STABLE); } =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_password.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- ewl_password.h 9 Feb 2005 20:44:12 -0000 1.2 +++ ewl_password.h 5 Oct 2005 22:45:57 -0000 1.3 @@ -36,8 +36,8 @@ char obscure; /**< Character displayed for password characters */ }; -Ewl_Widget *ewl_password_new(char *text); -void ewl_password_init(Ewl_Password * e, char *text); +Ewl_Widget *ewl_password_new(); +void ewl_password_init(Ewl_Password * e); void ewl_password_text_set(Ewl_Password * e, char *t); char *ewl_password_text_get(Ewl_Password * e); void ewl_password_obscure_set(Ewl_Password * e, char o); ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs