diff --git a/src/bin/e_widget_entry.c b/src/bin/e_widget_entry.c index bbcd8e336..c10e5ad65 100644 --- a/src/bin/e_widget_entry.c +++ b/src/bin/e_widget_entry.c @@ -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