- ewl_entry_init() doesn't seem to initialise e->text if the 'text' param is NULL from what I can see - Small copy/paste errors in comments.
I'd look into it more (there's a bug in text entry atm that I think might be from not setting the cursor position, but I'm hesitant to assume this since I'm unfamiliar with the code), but I need some sleep. Maybe tommorrow. Nick
Index: src/lib/ewl_entry.c =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_entry.c,v retrieving revision 1.7 diff -u -r1.7 ewl_entry.c --- src/lib/ewl_entry.c 22 Mar 2005 16:36:35 -0000 1.7 +++ src/lib/ewl_entry.c 26 Mar 2005 12:58:19 -0000 @@ -146,6 +146,8 @@ if (text) ewl_entry_text_set(e, text); + else + e->text=NULL; /* * setup the cursor @@ -287,7 +289,7 @@ * @param e: the entrywidget to append the text * @param text: the text to append in the entry widget @a e * @return Returns no value. - * @brief Append text to a entry widget + * @brief Append text to an entry widget * * Appends text to the entry widget @a e. */ @@ -324,7 +326,7 @@ * @param e: the entry widget to prepend the text * @param text: the text to prepend in the entry widget @a e * @return Returns no value. - * @brief Append text to a entry widget + * @brief Prepend text to an entry widget * * Appends text to the entry widget @a e. */ @@ -349,7 +351,7 @@ * @param text: the text to insert in the entry widget @a e * @param index: the index into the text to start inserting new text * @return Returns no value. - * @brief Append text to a entry widget + * @brief Insert text in an entry widget at a given position * * Appends text to the entry widget @a e. */