From: Prince Kr Dubey Date: Wed, 9 Feb 2011 06:57:55 +0000 (+0530) Subject: [Popup] One API Added to get the button list, so app can edit the title and icon... X-Git-Tag: REL_I9200_20110603-1~381 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=05e71730b10eb8b9a331c4c912566ddb612112d1;p=framework%2Fuifw%2Felementary.git [Popup] One API Added to get the button list, so app can edit the title and icon of button. (Change-Id: I16d5cbb2c44d9a1d1b1fad95b7b1105a976a15a2) --- diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in index 817b261..675c03b 100644 --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@ -2600,6 +2600,13 @@ extern "C" { ELM_POPUP_ORIENT_BOTTOM_RIGHT } Elm_Popup_Orient; + typedef struct _Action_Area_Data Action_Area_Data; + struct _Action_Area_Data + { + Evas_Object *obj; + Evas_Object *btn; + int response_id; + }; /* smart callbacks called: * "response" - when ever popup is closed, this signal is sent with appropriate response id.". */ @@ -2620,6 +2627,7 @@ extern "C" { EAPI void elm_popup_response(Evas_Object *obj, int response_id); EAPI void elm_popup_orient_set(Evas_Object *obj, Elm_Popup_Orient orient); EAPI int elm_popup_run(Evas_Object *obj); + EAPI Eina_List * elm_popup_buttons_list_get(Evas_Object *obj); /* tansit */ typedef enum diff --git a/src/lib/elm_popup.c b/src/lib/elm_popup.c index 1e840bd..a321e6d 100644 --- a/src/lib/elm_popup.c +++ b/src/lib/elm_popup.c @@ -710,6 +710,24 @@ elm_popup_buttons_add(Evas_Object *obj,int no_of_buttons, char *first_button_tex } /** + * Get the buttons list. + * + * @param [in] obj The popup object + * @return Button List. + * + * @ingroup Popup + */ +EAPI Eina_List * +elm_popup_buttons_list_get(Evas_Object *obj) +{ + ELM_CHECK_WIDTYPE(obj, widtype); + Widget_Data *wd = elm_widget_data_get(obj); + + if (!wd) return; + return wd->button_list; +} + +/** * This Set's the time before the popup window is hidden, * and ELM_POPUP_RESPONSE_TIMEOUT is sent along with response signal. *