Notification popup

Creating notification popup using EFL. Close the popup with hardware back key.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <efl_extension.h>
static void notification_popup(struct appdata *ad, char *title, char *message) {
    Evas_Object *popup = NULL, *content = NULL;
    popup = elm_popup_add(ad->win);
    elm_object_part_text_set(popup, "title,text", title);
    elm_popup_orient_set(popup, ELM_POPUP_ORIENT_CENTER);
    content = elm_label_add(ad->win);
    elm_object_text_set(content, message);
    elm_object_content_set(popup, content);
    elm_object_style_set(popup, "toast");
    eext_object_event_callback_add(popup, EEXT_CALLBACK_BACK, eext_popup_back_cb, NULL);
    evas_object_show(popup);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX