Add icon unsetter to elm_fileselector_entry

SVN revision: 53921
This commit is contained in:
Tiago Rezende Campos Falcao 2010-10-27 14:38:48 +00:00
parent 352893a5af
commit 972ab9abb0
2 changed files with 22 additions and 2 deletions

View File

@ -631,6 +631,7 @@ extern "C" {
EAPI const char *elm_fileselector_entry_button_label_get(const Evas_Object *obj);
EAPI void elm_fileselector_entry_button_icon_set(Evas_Object *obj, Evas_Object *icon);
EAPI Evas_Object *elm_fileselector_entry_button_icon_get(const Evas_Object *obj);
EAPI Evas_Object *elm_fileselector_entry_button_icon_unset(Evas_Object *obj);
EAPI void elm_fileselector_entry_window_title_set(Evas_Object *obj, const char *title);
EAPI const char *elm_fileselector_entry_window_title_get(const Evas_Object *obj);
EAPI void elm_fileselector_entry_window_size_set(Evas_Object *obj, Evas_Coord width, Evas_Coord height);

View File

@ -597,7 +597,7 @@ elm_fileselector_entry_inwin_mode_get(const Evas_Object *obj)
}
/**
* Set the icon used for the entry
* Set the icon used for the entry button
*
* Once the icon object is set, a previously set one will be deleted.
*
@ -616,7 +616,7 @@ elm_fileselector_entry_button_icon_set(Evas_Object *obj, Evas_Object *icon)
}
/**
* Get the icon used for the entry
* Get the icon used for the entry button
*
* @param obj The entry object
* @return The image for the entry
@ -631,3 +631,22 @@ elm_fileselector_entry_button_icon_get(const Evas_Object *obj)
if (!wd) return NULL;
return elm_fileselector_button_icon_get(wd->button);
}
/**
* Unset the icon used for the entry button
*
* Unparent and return the icon object which was set for this widget.
*
* @param obj The entry object
* @return The icon object that was being used
*
* @ingroup File_Selector_Entry
*/
EAPI Evas_Object *
elm_fileselector_entry_button_icon_unset(Evas_Object *obj)
{
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
return elm_fileselector_button_icon_unset(wd->button);
}