* [Entry] Add e_widget_entry_clear()

SVN revision: 25067
This commit is contained in:
moom 2006-08-23 10:51:35 +00:00 committed by moom
parent dcfb49efa5
commit 0479a753cd
1 changed files with 17 additions and 2 deletions

View File

@ -73,7 +73,7 @@ e_widget_entry_add(Evas *evas, char **text_location)
* @param entry an entry widget
* @param text the text to set
*/
EAPI void
EAPI void
e_widget_entry_text_set(Evas_Object *entry, const char *text)
{
E_Widget_Data *wd;
@ -89,7 +89,7 @@ e_widget_entry_text_set(Evas_Object *entry, const char *text)
* @param entry an entry widget
* @return Returns the text of the entry widget
*/
EAPI const char *
EAPI const char *
e_widget_entry_text_get(Evas_Object *entry)
{
E_Widget_Data *wd;
@ -99,6 +99,21 @@ e_widget_entry_text_get(Evas_Object *entry)
return e_entry_text_get(wd->o_entry);
}
/**
* Clears the entry widget
*
* @param entry an entry widget
*/
EAPI void
e_widget_entry_clear(Evas_Object *entry)
{
E_Widget_Data *wd;
if (!(entry) || (!(wd = e_widget_data_get(entry))))
return;
e_entry_clear(wd->o_entry);
}
/**
* Sets whether or not the entry widget is in password mode. In password mode,
* the entry displays '*' instead of the characters