[Popup] One API Added to get the button list, so app can edit the title and icon...
authorPrince Kr Dubey <prince.dubey@samsung.com>
Wed, 9 Feb 2011 06:57:55 +0000 (12:27 +0530)
committerPrince Kr Dubey <prince.dubey@samsung.com>
Wed, 9 Feb 2011 06:57:55 +0000 (12:27 +0530)
src/lib/Elementary.h.in
src/lib/elm_popup.c

index 817b261..675c03b 100644 (file)
@@ -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 
index 1e840bd..a321e6d 100644 (file)
@@ -710,6 +710,24 @@ elm_popup_buttons_add(Evas_Object *obj,int no_of_buttons, char *first_button_tex
 }\r
 \r
 /**\r
+ * Get the buttons list.\r
+ *\r
+ * @param [in] obj The popup object
+ * @return Button List.
+ *\r
+ * @ingroup Popup\r
+ */\r
+EAPI Eina_List *\r
+elm_popup_buttons_list_get(Evas_Object *obj)\r
+{\r
+   ELM_CHECK_WIDTYPE(obj, widtype);\r
+   Widget_Data *wd = elm_widget_data_get(obj);\r
+\r
+   if (!wd) return;\r
+   return wd->button_list;\r
+}\r
+\r
+/**\r
  * This Set's the time before the popup window is hidden, \r
  * and ELM_POPUP_RESPONSE_TIMEOUT is sent along with response signal.\r
  *\r