WWW-www.enlightenment.org pushed a commit to branch master. http://git.enlightenment.org/website/www-content.git/commit/?id=62ee5d6e5c9f5d07bea01d838bf8b326e0936276
commit 62ee5d6e5c9f5d07bea01d838bf8b326e0936276 Author: Amitesh Singh <[email protected]> Date: Sat Jul 18 08:45:36 2015 -0700 Wiki page popup_tutorial changed with summary [] by Amitesh Singh --- pages/tutorial/popup_tutorial.txt | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pages/tutorial/popup_tutorial.txt b/pages/tutorial/popup_tutorial.txt index 979491d..b6d249d 100644 --- a/pages/tutorial/popup_tutorial.txt +++ b/pages/tutorial/popup_tutorial.txt @@ -21,7 +21,7 @@ entitled "Popup Tutorial" and a button which opens up popup on click. #include <Elementary.h> static void -_btn_click_cb(void *data, Evas_Object *objEINA_UNUSED, +_btn_click_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { //popup code here @@ -56,6 +56,19 @@ ELM_MAIN() This widget is an enhancement of Notify. In addition to content area, there are two optional sections, namely title area and action area. <code c> +static void +_popup_close_cb(void *data, Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) +{ + Evas_Object *popup = data; + //delete popup + evas_object_del(popup); +} + +static void +_btn_click_cb(void *data, Evas_Object *obj EINA_UNUSED, + void *event_info EINA_UNUSED) +{ // Add an elm popup Evas_Object *popup; Evas_Object *btn; --
